Jan-08-2019, 12:14 AM
(This post was last modified: Jan-08-2019, 12:14 AM by ramadan2099.)
Is there a code error?
What do you need to get output?
http://www2.0zz0.com/2019/01/08/03/932918971.png
What do you need to get output?
http://www2.0zz0.com/2019/01/08/03/932918971.png
inp = input("Choose a score between 0.0 and 1.0") score = float(inp) if score >= 0.0 and score < 0.6: print 'F' elif score >= 0.6 and score < 0.7: print 'D' elif score >= 0.7 and score < 0.8: print 'C' elif score >= 0.8 and score < 0.9: print 'B' elif score >= 0.9 and score <= 1.0: print 'A' else: print 'Error: input not within range'