# Write your Python code
gradeList=[]
def showTopper():
topper = gradeList[]
print("Topper")
print(topper)
showTopper()
def showFailed():
failed = gradeList[1]
print("Failed")
print(failed)
showFailed()
def getGrade(marks):
grade=""
if marks<40:
grade= "D"
elif marks<60:
grade= "C"
elif marks<80:
grade= "B"
else:
grade="A"
return grade
for i in range(3):
name = input("Enter your name:")
print(name)
marks=int(input("Enter your marks"))
print(marks)
grade = getGrade(marks)
print ("your grade is:")
print(grade)
gradeList.append({name: name, grade: grade})
print("gradeList")
print(gradeList)
showGrade()