PYTHON ASSIGNMENT-1
Name: Md Al Hussain Ansari
Department: B.TECH (CSE) 1st year Semester:1 Group:D
Roll No: 138 Batch:12
1. Write a Python program to display “This is my first python Program”.
Code and Output:
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:
8. Write a python program to perform addition, subtraction, division and
multiplication of two numbers. Take user input.
Code and Output:
9. Write a python program to calculate area and circumference of a circle. Take
user input.
Code and Output:
10. Write a python program to evaluate each of the following equations: i) v =
u+at ii) s = ut + 1/2at 2 where v, u, a, t, s are variable and make the code using
user input.
Code and Output: