Python Forum
while loop will not stop looping
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
while loop will not stop looping
#6
Thank you everyone for your help!

I eventually did what was recommended, to use the break statement.

My problem was both my terrible true() statement (instead of break), and also my if statements were looking for int, while my input() function wasn't int(input()), it was input() so it was a string.

Thank you all!
Reply


Messages In This Thread
while loop will not stop looping - by TheTechRobo - Apr-01-2020, 02:37 PM
RE: while loop will not stop looping - by perfringo - Apr-01-2020, 04:20 PM
RE: while loop will not stop looping - by TheTechRobo - Apr-20-2020, 01:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Button to stop while loop from another script Absolutewind 5 954 Sep-25-2023, 11:20 PM
Last Post: deanhystad
  get out of while loop and stop repeat Frankduc 11 3,069 Apr-26-2022, 10:09 PM
Last Post: deanhystad
  "while" loop is looping back too early mangurian 1 1,302 Jan-28-2022, 09:15 AM
Last Post: ibreeden
  Stop/continue While loop block Moris526 68 26,055 Mar-28-2021, 09:21 PM
Last Post: Larz60+
  While loop keeps looping mcoliver88 3 2,237 Jul-29-2020, 12:48 PM
Last Post: buran
  Nested for loop not looping puttingwordstogether 0 1,734 Jun-16-2020, 11:15 PM
Last Post: puttingwordstogether
  'Looping' does not work out within a 'for Loop' Placebo 4 3,375 Sep-15-2018, 08:19 PM
Last Post: Placebo
  Can I Control loop with Keyboad key (start/stop) Lyperion 2 3,375 Jul-28-2018, 10:19 AM
Last Post: Lyperion
  For looping over a list, editing the list from inside the loop? Krookroo 3 3,978 Sep-04-2017, 05:08 PM
Last Post: Krookroo
  build a list (add_animals) using a while loop, stop adding when an empty string is en nikhilkumar 1 8,924 Jul-17-2017, 03:29 PM
Last Post: buran

Forum Jump:

User Panel Messages

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