marks = float(input("Enter your marks (out of 100): "))
if marks >= 90:
print("Grade: A+")
elif marks >= 80:
print("Grade: A")
elif marks >= 70:
print("Grade: B")
elif marks >= 60:
print("Grade: C")
elif marks >= 50:
print("Grade: D")
else:
print("Grade: Fail")
Input marks and print grade using conditions in Python
Login to like
Posted By:

UmairMehmood
11 days ago
Join the conversation!
Login to Comment