I wanted to develop a quiz system (I am a complete beginner), which would check if the entered value is float or anything else. It is not working. Here is the code:-
a = input("Enter a float(nothing else): ")
now, I will store the type of a in another variable, i.e., b
b = type(a)
if(type(a) == float):
print("You answered correctly!")
else:
print("You could not do it correctly!")
print(f"The type of your input is {b}")