Professional Documents
Culture Documents
5th Class
5th Class
ipynb - Colaboratory
"""
Q1. Write a program that takes a student's score as input and assigns a
letter grade (A, B, C, D, or F) based on the following criteria:
A: 90-100
B: 80-89
C: 70-79
D: 60-69
F: 0-59
"""
Enter a number: 56
Even number
age = 17
if age >= 18:
print("You are eligible to vote")
else:
print("You are not eligible
to vote")
a, b, c = 12, 8, 17
if a >= b and a >= c:
https://colab.research.google.com/drive/18X2Tyd-8ozjAsR1Kz7mdm40dSiwaOsvg#scrollTo=b53tU9p8OksP&printMode=true 2/3
11/7/23, 3:49 PM 5th_Class.ipynb - Colaboratory
print("a is the largest")
elif b >= a and b >= c:
print("b is the largest")
else:
print("c is the
largest")
c is the largest
https://colab.research.google.com/drive/18X2Tyd-8ozjAsR1Kz7mdm40dSiwaOsvg#scrollTo=b53tU9p8OksP&printMode=true 3/3