Jan-03-2020, 01:08 PM
Please how do i make my computation stay in the range between 0.0 and 1.0
score = input('Enter a score: ') if float(score) > 1.0 print('Bad score') if float(score) >= 0.9: print('A') elif float(score) >= 0.8: print('B') elif float(score) >= 0.7: print('C') elif float(score) >= 0.6: print("D") elif float(score) < 0.6: print('F') elif float(score) < 0.0 print('bad score') else: print('Bad score')