Python Forum
My code is not printing, how do I get it to do so?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My code is not printing, how do I get it to do so?
#4
You could check it this way:
elif int(grade) == 60 or int(grade) == 61 or int(grade) == 62:
which gets inconvenient if you want to check for even more values
so this might be one alternative
elif int(grade) in [60, 61, 62]:
of you check the range of the input:
elif int(grade) > 59 and int(grade) < 63:
Reply


Messages In This Thread
RE: My code is not printing, how do I get it to do so? - by ThomasL - Sep-16-2019, 03:37 PM

Forum Jump:

User Panel Messages

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