0% found this document useful (0 votes)
29 views1 page

Python Assignment 1

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)
29 views1 page

Python Assignment 1

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/ 1

Assignment-1

1. Write a program to read two integers and perform arithmetic operations on them (addition,
subtraction, multiplication and division).
2. Write a program to read the marks of three subjects and find the average of them.
3. Write a program to convert kilogram into pound.
4. Surface area of a prism can be calculated if the lengths of the three sides are known. Write a
program that takes the sides as input (read it as integer) and prints the surface area of the prism
(Surface Area = 2ab + 2bc + 2ca).
5. A plane travels 395,000 meters in 9000 seconds. Write a program to find the speed of the plane
(Speed = Distance / Time).
6. You need to empty out the rectangular swimming pool which is 12 meters long, 7 meters wide
and 2 meter depth. You have a pump which can move 17 cubic meters of water in an hour. Write a
program to find how long it will take to empty
your pool? (Volume = l * w * h, and flow = volume/time).
7. Write a program to convert temperature from centigrade (read it as float value) to Fahrenheit.
8. Write a program that calculates the number of seconds in a day.
9. A car starts from a stoplight and is traveling with a velocity of 10 m/sec east in 20 seconds. Write
a program to find the acceleration of the car. (acc = (vfinal−vinitial)/ time).

You might also like