Python practice programs
Python practice programs
Write the program with maximum three lines of code and that assigns first 5 multiples of a number to 5
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.
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
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:
13. Write a program that takes sales for four quarters and then displays total sales and average sales made.