Hello everyone, i am learning python and want to know if there is a way to display an error if someone goes past a specific value,
For example here i want to display an error if they go below 0 to negatives or anything above 1.0.
score = input("Enter Score between 0.0 and 1.0: ")
flscore = float (score)
????????????????????????????:
print(Error)
Plase note that i also want to display a message if they choose a number in between those numbers for example
if flscore >= 0.9:
print (msg)
For example here i want to display an error if they go below 0 to negatives or anything above 1.0.
score = input("Enter Score between 0.0 and 1.0: ")
flscore = float (score)
????????????????????????????:
print(Error)
Plase note that i also want to display a message if they choose a number in between those numbers for example
if flscore >= 0.9:
print (msg)