I want to validate a float value between 0 and 5 that can have the format x.xx
So 3.14 is valid, however 3.14a would be invalid.
if x <= 0 or x > 5 or not x.isdigit():
return 'error'
However, this will return error for 1.1, since there's the '.' character...