Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- # unweighted gpa calculator
- print("---------------- \nmade by [null]")
- print("Unweighted GPA Calculator \n----------------")
- time.sleep(1.25)
- skadoosh = "y"
- while skadoosh == "y" or skadoosh == "yes":
- coconut_shrimp_is_bomb = []
- # you cant change their mind, it's really good
- print("Enter how many classes you take: ")
- fragile = int(input())
- persistent = 1
- while persistent != fragile + 1:
- print("Enter class", persistent, "letter grade (B+, B, B-, etc.):")
- orange = input()
- orange = orange.upper()
- coconut_shrimp_is_bomb.append(orange)
- persistent += 1
- print(coconut_shrimp_is_bomb)
- nut = 0
- chimney = 0
- for cheeks in coconut_shrimp_is_bomb:
- if cheeks == "A+" or cheeks == "A":
- nut = nut + 4.0
- elif cheeks == "A-":
- nut = nut + 3.7
- elif cheeks == "B+":
- nut = nut + 3.3
- elif cheeks == "B":
- nut = nut + 3.0
- elif cheeks == "B-":
- nut = nut + 2.7
- elif cheeks == "C+":
- nut = nut + 2.3
- elif cheeks == "C":
- nut = nut + 2.0
- elif cheeks == "C-":
- nut = nut + 1.7
- elif cheeks == "D+":
- nut = nut + 1.3
- elif cheeks == "D":
- nut = nut + 1.0
- elif cheeks == "F":
- nut = nut + 0.0
- mystic = nut / len(coconut_shrimp_is_bomb)
- round(mystic, 2)
- print(round(mystic, 2), "is your unweighted GPA")
- time.sleep(2)
- print("\n\nAgain? y/n:")
- skadoosh = str(input())
- print("---------------- \nmade by [null] \n----------------")
- time.sleep(1.25)
- # coconut shrimp is bomb
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement