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

Python Task

The document provides a list of ten Python programming tasks, including printing messages, performing arithmetic operations, calculating areas and volumes of geometric shapes, computing simple interest, and determining the quadrant of a point based on its coordinates. Each task includes a brief description of the required calculations or input/output specifications. The tasks are aimed at practicing fundamental programming concepts and mathematical computations in Python.

Uploaded by

Mohammad Kaif
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)
3 views1 page

Python Task

The document provides a list of ten Python programming tasks, including printing messages, performing arithmetic operations, calculating areas and volumes of geometric shapes, computing simple interest, and determining the quadrant of a point based on its coordinates. Each task includes a brief description of the required calculations or input/output specifications. The tasks are aimed at practicing fundamental programming concepts and mathematical computations in Python.

Uploaded by

Mohammad Kaif
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

1.​ Write a python program to print a message on screen.

2.​ Write a python program to take two numbers as input now find summation, subtraction,
multiplication and division of two numbers.

3.​ Write a python program to find area and perimeter of circle.


area=3.14*r*r
perimeter=2*3.14*r

4.​ Write a python program to find volume and surface area of cuboid.
v=l*b*h
sa=2*(l*b+b*h+h*l)

5.​ Write a python program to find simple interest.


si=(p*n*r)/100

6.​ Write a python program to find square of a number.

7.​ Write a python program to take number of days as input now display years, weeks and
days. E.g. If user input 375 days then output will be 1 years, 1 weeks and 3 days. In this
program ignore leap year.

8.​ Write a python program to compute area of perimeter of rectangle.


area=l*b
perimeter=2*(l+b)
9.Write a python program to compute gross salary based on following parameters:-
Basic Salary​ HRA​ DA
1-4000​ 10% 50%
4001-8000​ 15%​ 60%
8001-12000​ 20%​ 70%
More than 12000​ 25%​ 80%

gs=bs+hra+da

10.Write a python program to take coordinates of a point as input and determine its quadrant.
+ + --> I quadrant
- + --> II quadrant
- - --> III quadrant
+ - --> IV quadrant

You might also like