Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
while loop problem
#2
In lines 31-40, the value of b is calculated one time (I put in print statements to test) and has the value of zero. lst then has the value of [0] and sum of lst is then obviously 0. Problem is in the logic of that loop
Reply


Messages In This Thread
while loop problem - by fid - Jun-19-2020, 03:58 PM
RE: while loop problem - by jefsummers - Jun-19-2020, 04:20 PM
RE: while loop problem - by fid - Jun-19-2020, 07:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  for loop problem with opencv Miradox 1 2,446 Dec-23-2018, 10:39 PM
Last Post: stullis
  problem on for-if loop alrm31015 1 2,198 Aug-21-2018, 05:48 PM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

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