Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to update a variable
#1
here is the code:

second = 1
third = 1

while second < 100:
 while third < 50:
  print(third)
 third += 1
print(second)
second += 1
why does it print only:
1
1
1
1
1
and so on, without increasing ?
Reply


Messages In This Thread
how to update a variable - by astral_travel - Apr-06-2020, 08:06 AM
RE: how to update a variable - by bowlofred - Apr-06-2020, 08:46 AM
RE: how to update a variable - by astral_travel - Apr-06-2020, 08:53 AM
RE: how to update a variable - by bowlofred - Apr-06-2020, 09:23 AM
RE: how to update a variable - by astral_travel - Apr-06-2020, 03:54 PM
RE: how to update a variable - by Newerpython - Apr-06-2020, 04:22 PM
RE: how to update a variable - by astral_travel - Apr-06-2020, 05:26 PM
RE: how to update a variable - by snippsat - Apr-06-2020, 05:56 PM
RE: how to update a variable - by astral_travel - Apr-06-2020, 07:33 PM
RE: how to update a variable - by snippsat - Apr-06-2020, 07:46 PM
RE: how to update a variable - by astral_travel - Apr-06-2020, 08:35 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question Python + Google Sheet | Best way to update specific cells in a single Update()? Vokofe 1 2,748 Dec-16-2020, 05:26 AM
Last Post: Vokofe

Forum Jump:

User Panel Messages

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