Mid2 3rd_Calculate_Grades_from_Percentage
per=int(input("Enter a student percentage: "))
if per>=75:
print("congrats A+ grade")
elif per>=60:
print("congrats A grade")
elif per>=50:
print("you got B+ grade")
elif per>=40:
print("you got B grade")
else:
print("Better luck next time")
#output:
Enter a student percentage: 85
congrats A+ grade
Comments
Post a Comment