+ 1
Python Retry and check
Hi every one. I just wonder how take a input from user for example number check the input and if input is a string inform user about error and start function again . try: num = float(input("enter num") except: print("this is not a num try again") How to make something like goto or while is true ?
2 Respostas
+ 1
Use an infinite loop with return and continue statements...
https://code.sololearn.com/c4eoE6ln4G3v/?ref=app
0
O will check it thx