This is a line I have in my source code:
r = float(input("\nEnter radius: "))
and my professor wants me to check if the input is a float AFTER I have given user input i.e. "four".
How can I do this?
This is a line I have in my source code:
r = float(input("\nEnter radius: "))
and my professor wants me to check if the input is a float AFTER I have given user input i.e. "four".
How can I do this?