I am totally new to Python and I'm trying to write a little program.
It consists of entering a score between 0.0 and 1.0. In the code I have written, it's very basic, I can get it to come up in terminal and it says enter score: but, when I do enter one, I get the error message:'>=' not supported between instances of 'str' and 'float'.
Now I know I need to do something to fix it but i am having a brain freeze. Any ideas?
score = input("Enter score: ")
if score >= 0.9:
print('Error, try again!')
if score >= 0.85:
print('Well Done!!')
if score >= 0.7:
print('Error, try again')
if score >= 0.6:
print('Error, try again')
if score <= 0.6:
print("Error, invalid answer")