Ive set up this program that checks the mark out of 100 for a test. If the user inputs less than 60 it should say fail if more than 59, pass.
mark = int(input("Please enter the exam mark out of 100 "))
if mark < 60:
print("
Fail")
elif mark < 101:
print("
Pass")
else:
print("
The mark is out of range")
how do i get the program not to have errors if the user does not input the Integer.
Please help, is there a quick solution that 14 year olds would understand?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…