I need assistance with the following Python exercise:
At a certain university students receive letter grades based on the following scale: Integer Score Letter Grade 93 or above A 84-92 B 74-83 с 65-73 D Below 65 F Write a function calculateGrade that will assign the correct string to grade for the given integer score. Examples Input: 93 Output: A Input: 92 Output: B Input: 1 Output: F Note: 100 >= num > 0 13 # 14 15 16 17 18 19 20 21 22 23 24 25 26 ✓ 27 calculateGrade (grade) 28 29 30 # The function accepts INTEGER grade as parameter. def calculateGrade (grade): #grade = int(input("Enter your Grade Percentage (ie. 0 100): ") if name == '__main__': grade = int(input().strip())
I need assistance with the following Python exercise:
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am