Python: error - TypeError: 'str' object is not callable
Hi there,
I'm new to python and here is one of my first try. I'm getting the following error and II'd like to understand why. Here is what happen when I start the program $ ./second.py Traceback (most recent call last): File "./second.py", line 8, in <module> print (adjective) TypeError: 'str' object is not callable PHP Code:
|
this line:
Quote:
PHP Code:
|
in this line:
print = ("You are a") the equal sign made a problem, you redefined the print keyword... print ("You are a") whould be better I think |
Oh....
Thanks; it's working. I'll change my glasses, I promess. :) |
All times are GMT -5. The time now is 10:03 AM. |