Fahr = input("Insert temperature in Fahrenheit: " )
while type(Fahr) != float or type(Fahr) != int:
Fahr = input("Error: Insert temperature in Fahrenheit: " )
Celcius = ((Fahr) - 32) * 5/9
print("Your imput: " + Fahr + " Fahrenheit" )
print("This is equal to: " + Celcius + " Celcius" )
I need to be sure that the user only inserts INT's or floats. When i execute this code, it goes automatically go in the while loop even when i insert an INT or float. Whats wrong with this code and how should it be?