Code: Select all
try:
float_number = float(input("Enter a float number":))
except ValueError:
return "Please pick a float datatype. That type is a number with a decimal point."
else:
print(f "Your chosen float number is { float_number}.")
