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
#3
Hello and welcome to Python and the forums.
Next time use proper Python code tags, this time I added them for you.
What text do you enter when asked for input? Your if statements respond only to "yes" and "no" as an input. If you enter anything else (be it even "Yes", "YES", "No", "NO"...) the program will go over the checks and finish the program.
You should probably use if - elif - else to make your code more robust.
Reply


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

Forum Jump:

User Panel Messages

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