Skip to content

Cos #379

@ago-cd

Description

@ago-cd

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions