Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Counter in this code
#2
counter = 1 the variable named counter is assigned to point at an object that represents a 1.
while counter == 1: while the object assigned to counter is equal to a 1 continue to loop.
counter = 0 the variable named counter is assigned to point at an object that represents a 0.
Note: This will stop the above loop the above and only happens when if i == 5: evaluates to True.
Reply


Messages In This Thread
Counter in this code - by leenad - May-12-2019, 02:54 PM
RE: Counter in this code - by Yoriz - May-12-2019, 04:32 PM

Forum Jump:

User Panel Messages

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