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

Python practice programs

The document contains a list of programming tasks that require writing Python programs for various mathematical and computational problems. Each task specifies a different requirement, such as calculating multiples, areas, averages, and financial calculations. The tasks range from simple input/output operations to more complex calculations involving formulas.

Uploaded by

shaikhsubuhi99
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)
15 views1 page

Python practice programs

The document contains a list of programming tasks that require writing Python programs for various mathematical and computational problems. Each task specifies a different requirement, such as calculating multiples, areas, averages, and financial calculations. The tasks range from simple input/output operations to more complex calculations involving formulas.

Uploaded by

shaikhsubuhi99
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 the program with maximum three lines of code and that assigns first 5 multiples of a number to 5

variables and then print them.

2. Write a Python program that accepts radius of a circle and prints its area.

3. Write Python program that accepts marks in 5 subjects and outputs average marks.

4. Write a program to read a number n and print n2, n3 and n4

5. Write a program to find area of a triangle.

6. Write a program to compute simple interest and compound interest.

7. Write a program to input a number and print its first five multiples.

8. Write a program to input the cost price, selling price and print the profit earned.

9. Write a program to obtain temperatures of 7 days (Monday, Tuesday … Sunday) and then display average

temperature of the week.

10. Write a program to obtain x, y, z from user and calculate expression: 4x4 + 3y3 + 9z + 6

11. Write a program that inputs an age and print age after 10 years as shown below:

What is your age ? 17

In ten years, you will be 27 years old!

12. Write a program to calculate amount payable after simple interest.

13. Write a program that takes sales for four quarters and then displays total sales and average sales made.

14. Write a program to calculate EMI as per formula: E=PR(1+R)n/((1+R)n- 1)

You might also like