The document contains code snippets for several Python programs:
1) A program to calculate the area of a triangle by taking in three side lengths as input and using the semi-perimeter formula.
2) A program to calculate simple interest by taking in principal amount, rate of interest, and number of years.
3) A program to calculate the area and circumference of a circle by taking in the radius as input.
4) A program to swap the values of two variables using a temporary variable.
5) A program to check if a year entered by the user is a leap year or not.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
104 views6 pages
Pytohn Programs Class 11
The document contains code snippets for several Python programs:
1) A program to calculate the area of a triangle by taking in three side lengths as input and using the semi-perimeter formula.
2) A program to calculate simple interest by taking in principal amount, rate of interest, and number of years.
3) A program to calculate the area and circumference of a circle by taking in the radius as input.
4) A program to swap the values of two variables using a temporary variable.
5) A program to check if a year entered by the user is a leap year or not.