Nov-16-2018, 11:07 AM
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
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
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs