I'm making a calculator in python 3 and I'm wondering if there is an option that can tell if the input the user gave is not a float. For example if the user wrote a word instead of a float the code will recognize it and print out something like:
if num1 != float:
print("You Need To Enter A Number")