Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > General Computer Discussion > Gaming > Why is str not callable

Reply
Thread Tools

Why is str not callable

 
 
KyleWilliamsnichtgay KyleWilliamsnichtgay is offline
Junior Member
Join Date: Nov 2011
Posts: 1
 
      11-11-2011
def TakeHoodie():
TakeHoodie=input("Would you like to take the Bieber Hoodie? Y/N ")
if TakeHoodie.upper == "Y":
bp.append("Bieber Hoodie")
lookIn()
elif TakeHoodie.upper == "N":
lookIn()
else:
print("You can't do that and we don't tolerate that language!")
TakeHoodie()
def lookIn():
lookIn=input("Would you like to check the fridge? Y/N ")
if lookIn.upper == "Y":
print("You find a glowing bottle of Red Bull in the fridge.")
stealBull()
elif lookIn.upper == "N":
print("You can hear the dinosaur stomping and the shack starts to fall")
else:
print("You can't do that and we don't tolerate that language!")
lookIn()
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: "str object is not callable" error Gabriel Genellina Python 0 04-13-2009 04:55 AM
Making Non Callable Objects Callable exiquio Python 2 10-07-2008 06:02 PM
verify whether "str" is still callable in Python 2.5.1 Ge Chunyuan Python 3 08-13-2007 09:21 AM
findcontrol("PlaceHolderPrice") why why why why why why why why why why why Mr. SweatyFinger ASP .Net 2 12-02-2006 03:46 PM
Why TypeError: 'str' object is not callable? Randall Parker Python 5 03-22-2006 10:30 PM



Advertisments