sistema de classificação em python com aninhado se

# Write a Python program
# using nested if else statement
# to print the grade based on marks
# input by the user

# Perfect Python Programming Tutorials
# Author : www.EasyCodebook.com (c)

# Actual Program starts here 
# Python Program - Print Your Grade using nested if

marks = input("Enter Marks Obtained: ")
marks = int(marks)
if marks >= 80:
    grade = 'A'
else:
    if marks >= 70:
        grade = 'B'
    else:
        if marks >= 55:
            grade = 'C'
        else:
            if marks >= 50:
                grade = 'Pass'
            else:
                 grade = 'Fail'
print ("\nYour Grade is: " + grade)
mathiasgodwin