Jan-04-2019, 01:00 PM
(This post was last modified: Jan-04-2019, 01:12 PM by ichabod801.)
I'm just trying out Python today and I tried to do some code and I got this error
Error:
1 2 3 4 5 6 7 8 9 10 11 12 |
print ( "no" ) myting = "hello world" print = (myting) mynem = input ( "What is your Name?" ) myvar = input ( "I need a number :" ) if (mynem = = "Snek" and myvar ! = "0" ): print ( "big vag" ) elif (mynem = = "majeff" ): print ( "badjoke" ) else : print ( "okgood" ) |
Output:Traceback (most recent call last):
File "C:\Users\[my rl name]\Desktop\nonono.py", line 12, in <module>
print("okgood")
TypeError: 'str' object is not callable
I tried to look it up what that means but I don't understand it.