Python Forum
While loop to run a boolean test
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
While loop to run a boolean test
#8
you want to check user input every time when you take it.
you take user input once, you check it using the function and assign what it return to result variable. If it is not True (input is invalid) you enter a while loop and then you need to check user input and assign that to result variable and repet until it is valid input
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
While loop to run a boolean test - by vicson - Nov-16-2018, 08:33 AM
RE: While loop to run a boolean test - by buran - Nov-16-2018, 08:49 AM
RE: While loop to run a boolean test - by vicson - Nov-16-2018, 09:39 AM
RE: While loop to run a boolean test - by buran - Nov-16-2018, 09:49 AM
RE: While loop to run a boolean test - by vicson - Nov-16-2018, 09:54 AM
RE: While loop to run a boolean test - by vicson - Nov-16-2018, 10:27 AM
RE: While loop to run a boolean test - by buran - Nov-16-2018, 10:13 AM
RE: While loop to run a boolean test - by buran - Nov-16-2018, 11:07 AM

Forum Jump:

User Panel Messages

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