Computer Project PDF
Computer Project PDF
Computer Project PDF
Q2) Input three numbers and display the largest and smallest number
n=3
list=[]
i=1
print("enter values:-")
while i<=n:
b=int(input("enter numbers:"))
list.append(b)
i=i+1
print(list)
print(min(list))
print(max(list))
Q9) Create a dictionary with the roll number and names of n students
in a class and display the names of students who have scored above 75
dict={"ria":63,"pia":56,"sia":78,"lia":93}
for i in dict:
if dict[i]>75:
print(i,dict[i])