Python Assignment 1
Python Assignment 1
2. Write a python program for two integers and find their sum and product.
Code and Output:
3. Write a python program to take five integers and find their average.
Code and Output:
4. Write a python program to take user input for three integers and find their
sum and product and their average.
Code and Output:
5. Write a python program to take user input for the Principal, Rate and Time
for a certain amount of money and print the Simple Interest.
Code and Output:
6. Write a python program to take user input the length and breadth of a
rectangle and find its area and perimeter.
Note: Area of a rectangle= length*breadth, Perimeter of a rectangle=2*(length +
breadth)
Code and Output:
7. Write a python program to take user input the radius of a circle and find its
area and perimeter. Note: Area of a circle=22/7* radius2, Circumference of a
circle= 2 * 22/7 *radius.
Code and Output: