0% found this document useful (0 votes)
2 views5 pages

Python Assignment 1

The document is a Python assignment for a B.Tech (CSE) first-year student, Md Al Hussain Ansari, consisting of ten programming tasks. Each task requires writing a Python program to perform various calculations, such as displaying messages, finding sums and products, calculating averages, and computing areas and perimeters of geometric shapes. The assignment emphasizes user input and includes specific formulas for calculations.

Uploaded by

Ali
Copyright
© © All Rights Reserved
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% found this document useful (0 votes)
2 views5 pages

Python Assignment 1

The document is a Python assignment for a B.Tech (CSE) first-year student, Md Al Hussain Ansari, consisting of ten programming tasks. Each task requires writing a Python program to perform various calculations, such as displaying messages, finding sums and products, calculating averages, and computing areas and perimeters of geometric shapes. The assignment emphasizes user input and includes specific formulas for calculations.

Uploaded by

Ali
Copyright
© © All Rights Reserved
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
You are on page 1/ 5

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:

You might also like