Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Loops
#2
Quote:when i try to run it, it says the 'break' is out of the loop. when imove it it says elif is a Syntax error. Need help
You don't have an elif. Please post exact unaltered and complete error message (in error tags)

Your if/else is not part of loop, to make it so, indent 2 levels
Reply


Messages In This Thread
Loops - by Programming_Noob - Jan-20-2019, 12:40 PM
RE: Loops - by Larz60+ - Jan-20-2019, 01:07 PM

Forum Jump:

User Panel Messages

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