Python Forum
If statements won't work!!!! Plz help me. Thx
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
If statements won't work!!!! Plz help me. Thx
#1
Hi. I'm pretty new to python so this is probably a stupid question but simple IF statements don't work for me when I'm using variable = input for instance if I wrote something like

tuna = input("is tuna a fish")
if tuna=="yes":
         print("I know, course tuna is a fish")
if tuna=="no":
         print("What are you talking about, of course tuna is a fish")
It simply won't work. It doesn't even display an error no matter what I choose as to what tuna equals all that happens is it hits the end of the code with no words showing up. Does anybody know what I'm doing wrong? If so I would appreciate the help. Thx... Wall
Reply


Messages In This Thread
If statements won't work!!!! Plz help me. Thx - by BubblesTheGiraffe - Oct-20-2018, 10:12 PM

Forum Jump:

User Panel Messages

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