Sep-16-2019, 03:37 PM
You could check it this way:
so this might be one alternative
elif int(grade) == 60 or int(grade) == 61 or int(grade) == 62:which gets inconvenient if you want to check for even more values
so this might be one alternative
elif int(grade) in [60, 61, 62]:of you check the range of the input:
elif int(grade) > 59 and int(grade) < 63: