Skip to content

Instantly share code, notes, and snippets.

@code-ghalib
code-ghalib / malz.py
Last active October 12, 2019 18:00
malz.py
name = input("Enter your name: ")
def grade_from_percentage(p):
if p < 60.0:
return "n F"
elif p <= 64.0:
return "D"
elif p <= 69.0:
return "D+"
elif p <= 74.0:
return "C"