Class 11 Python Programs
Class 11 Python Programs
sum=a+b
2.Write a program that accepts radius of a circle and prints its area.
r=int(input('Enter the radius of circle:'))
area=3.14*r**2
print('The area of the circle is:', area)
3. Write a program that accepts base and height and calculate the area of
triangle.
area=(1/2)*b*h
P=(a+b+c)/3
print('The percentage marks are:', P,'%')
5. Write a program to compute area of square and triangle.
area_square=a**2
area_triangle=((3**0.5)/4)*a**2