Python Forum
Two loops behaving differently
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Two loops behaving differently
#3
Please post the code that causes the problem. The code you provided does not run (error in the first print statement, while b < 5 loop never ends). When I fixed the error I could not make the code exhibit the behavior you describe.

I'm sure this code is similar to your code, but the most important part is missing. The part that demonstrates your problem. You cut that part out because you didn't think it mattered. Obviously it does. Please post the actual code that has the actual problem.
Reply


Messages In This Thread
Two loops behaving differently - by DavidTheGrockle - Dec-26-2020, 03:24 PM
RE: Two loops behaving differently - by deanhystad - Dec-26-2020, 08:05 PM
RE: Two loops behaving differently - by deanhystad - Dec-27-2020, 03:56 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  ConfigParser(dict_type=) not behaving as expected malonn 5 3,367 Sep-08-2022, 08:42 AM
Last Post: malonn
  List comprehension used differently coder_sw99 3 1,775 Oct-03-2021, 04:12 PM
Last Post: coder_sw99
  if condition not behaving as expected EricBHK 10 3,926 May-16-2020, 03:41 PM
Last Post: EricBHK
  Hash command works differently for me in CMD and Spyder ZweiDCG 3 2,394 Sep-10-2019, 01:10 PM
Last Post: DeaD_EyE
  Requests not behaving... PythonLamer 1 4,850 Dec-01-2017, 06:45 PM
Last Post: nilamo
  Why does Function behave differently in a class vs. outside a class? Leaf 4 3,734 Nov-30-2017, 11:13 AM
Last Post: DeaD_EyE

Forum Jump:

User Panel Messages

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