EXERCISE 3 Python
EXERCISE 3 Python
1.write a program to find the grade of the student using conditional statements in
python
def get_grade(score):
if score >= 90:
return 'A'
elif score >= 80:
return 'B'
elif score >= 70:
return 'C'
elif score >= 60:
return 'D'
else:
return 'F'
EXERCISE 4
1. write a program to get a number from an user and print countdown from that
number to zero using basic control structures and loops
# Get a number from the user
number = int(input("Enter a number to start the countdown: "))