Nov-12-2022, 07:52 AM
(Nov-12-2022, 04:45 AM)abrahimusmaximus Wrote: Why do I even need the continue?
continue
returns the execution at the start of the loop, i.e. if you get error, when trying to convert e.g. bob
to float
value it will ask for user input again till get valid input. Also, bare except
is bad practice, be specific, in this case except TypeError:
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