Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with code
#1
I'm just trying out Python today and I tried to do some code and I got this error
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")
Error:
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.
Reply


Messages In This Thread
Help with code - by Snek - Jan-04-2019, 01:00 PM
RE: Help with code - by gehrenfeld - Jan-04-2019, 01:11 PM
RE: Help with code - by Axel_Erfurt - Jan-04-2019, 01:12 PM
RE: Help with code - by Snek - Jan-04-2019, 01:14 PM
RE: Help with code - by ichabod801 - Jan-04-2019, 01:15 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020