Page 135 - Information_Practice_Fliipbook_Class11
P. 135
grade = "Outstanding"
elif 90 <= percentage < 95:
grade = "A"
elif 75 <= percentage < 90:
grade ="B"
elif 60 <= percentage < 75:
grade = "C"
else:
grade ="D"
# Display the result
print("Jacky's percentage:",percentage)
print("Jacky's grade:",grade)
4. MurShylitlatnrninglnbouSlSrinngattlinlenShtenSict.lHtlknowtlShnSlShtltueloflnaalShrttlinStrnnalnngattloflnlSrinngatlitl180.l
Thtrtfort,lhtlwnnStlSolwriStlnlprogrnelinlPyShonlShnSlncctpStl3lnngattlinldtgrtttlnndlprinStlwhtShtrlShtlgivtnlnngattlforel
nlSrinngatlorlnoS.lHtaplhielcoepatStlShtlSntk.
Ans. '''
Objective: To check whether the given angles form a triangle
Inputs: angle1, angle2, angle3 in degree
Output: message if the angles forms a triangle or not
'''
angle1 = int(input('Enter a first angle in degrees: '))
angle2 = int(input('Enter a second angle in degrees: '))
angle3 = int(input('Enter a third angle in degrees: '))
if angle1+angle2+angle3 == 180:
print('Given angles form a triangle')
else:
print("Given angles don't form a triangle")
Conditonnal SnStetnSt 121

