Python Forum
Use of 'continue' instruction in a 'while' loop
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Use of 'continue' instruction in a 'while' loop
#2
that code will never execute, you're right, it's not needed and is worthless.
the condition of the while clause is number not = -1
so if number == -1 can never be satisfied.
GJG likes this post
Reply


Messages In This Thread
RE: Use of 'continue' instruction in a 'while' loop - by Larz60+ - Dec-29-2020, 06:06 AM

Forum Jump:

User Panel Messages

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