Python Forum
If/Else If Statement Not Running
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
If/Else If Statement Not Running
#5
Sorry, [1] should be [0] and it selects the first letter you typed. I can see why selecting the second letter was confusing.

You should not be getting an error with the print statement. I just ran the posted code. After changing [01] to [1] it runs correctly.
Reply


Messages In This Thread
RE: If/Else If Statement Not Running - by Larz60+ - Dec-08-2021, 03:09 PM
RE: If/Else If Statement Not Running - by deanhystad - Dec-09-2021, 11:50 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Stop if statement from running KieranPage 3 2,015 May-05-2020, 04:10 PM
Last Post: Yoriz

Forum Jump:

User Panel Messages

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