Doing a very basic grade calculator, and I can't figure out how to code a specific input validity test. I want to test the input to make sure it is only numerical values, and not characters. I already have a single test to verify that the inputed value is within the specified numerical range, but it doesn't account for the possibility of letters.
# prompt user for input
x = float(input("Enter your score between 0.0 - 1.0"))
# test if input is within range
if x < 0.0 or x > 1:
print("Not a valid score")