-
Notifications
You must be signed in to change notification settings - Fork 3k
Open
Description
Grading System
Ask for the student's score
score = int(input("Enter your score (0 - 100): "))
Determine the grade based on the score
if 70 <= score <= 100:
grade = "A"
elif 60 <= score < 70:
grade = "B"
elif 50 <= score < 60:
grade = "C"
elif 45 <= score < 50:
grade = "D"
elif 40 <= score < 45:
grade = "E"
elif 0 <= score < 40:
grade = "F"
else:
grade = "Invalid score entered"
Display the grade
print("Your grade is:", grade)
Metadata
Metadata
Assignees
Labels
No labels