Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Functions
#2
Your topic is a bit off.

Your problem is you are comparing a string (choice) against integers (1, 2, 3, 4, or 5). A str will not be equal to an int so none of your "if" conditions are True. That is why it keeps asking you to select an option
Reply


Messages In This Thread
Functions - by Notivation - Apr-29-2020, 09:48 PM
RE: Functions - by deanhystad - Apr-29-2020, 09:56 PM
RE: Functions - by Notivation - Apr-29-2020, 10:24 PM
RE: Functions - by deanhystad - Apr-30-2020, 03:05 AM

Forum Jump:

User Panel Messages

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