Python Forum
Why is the while loop not working?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why is the while loop not working?
#3
(Aug-18-2020, 01:46 PM)Cryptus Wrote: because after you give homework = yes and dinner = no the while function isnt true anymore and it jumps to your else function

Thanks for the advice.

I am new to Python, so what's the best way to solve this? I thought that the conditions would need to be satisfied in order for the loop to be marked as completed.
Reply


Messages In This Thread
Why is the while loop not working? - by mcoliver88 - Aug-18-2020, 12:45 PM
RE: Why is the while loop not working? - by Cryptus - Aug-18-2020, 01:46 PM
RE: Why is the while loop not working? - by mcoliver88 - Aug-18-2020, 01:49 PM
RE: Why is the while loop not working? - by Cryptus - Aug-18-2020, 02:03 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  while loop not working-I am using sublime text editor mma_python 4 2,341 Feb-05-2023, 06:26 PM
Last Post: deanhystad
  WHILE Loop - constant variables NOT working with user input boundaries C0D3R 4 2,734 Apr-05-2022, 06:18 AM
Last Post: C0D3R
  Infinite loop not working pmp2 2 2,561 Aug-18-2020, 12:27 PM
Last Post: deanhystad
  Loop not working Nonameface 8 4,739 Jul-19-2020, 12:27 PM
Last Post: snippsat
  for loop script over telnet in Python 3.5 is not working abhijithd123 1 3,681 May-10-2020, 03:22 AM
Last Post: bowlofred
  How to keep a loop containing a web import working in python executable? coder1384 3 4,130 Feb-22-2020, 06:49 PM
Last Post: snippsat
  For loop not working pjgrah01 4 3,983 Nov-03-2019, 11:58 PM
Last Post: pjgrah01
  Appending to list not working and causing a infinite loop eiger23 8 6,554 Oct-10-2019, 03:41 PM
Last Post: eiger23
  Working on my FOR loop wilsonrivas 1 2,852 May-24-2019, 04:05 PM
Last Post: heiner55
  plotting inside the loop is not working jenya56 4 4,399 Apr-10-2019, 08:11 PM
Last Post: perfringo

Forum Jump:

User Panel Messages

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