0% found this document useful (0 votes)
112 views

Test Data: Amt 10000, Int 3.5, Years 7 Expected Output: 12722.79

The document lists 30 Python programs covering a variety of tasks like displaying multiplication tables, checking for Armstrong and prime numbers, solving quadratic equations, converting between units like kilometers to miles, calculating areas and volumes, working with strings and numbers, using loops and conditional statements. Many involve taking user input and displaying outputs with patterns or through conditional logic.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
112 views

Test Data: Amt 10000, Int 3.5, Years 7 Expected Output: 12722.79

The document lists 30 Python programs covering a variety of tasks like displaying multiplication tables, checking for Armstrong and prime numbers, solving quadratic equations, converting between units like kilometers to miles, calculating areas and volumes, working with strings and numbers, using loops and conditional statements. Many involve taking user input and displaying outputs with patterns or through conditional logic.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

1.

Python Program to Display the multiplication Table


2. Python Program to Print the Fibonacci sequence
3. Python Program to Check Armstrong Number
4. Python Program to Find Armstrong Number in an Interval
5. Python Program to Find the Sum of Natural Numbers Python Program to Calculate the
Area of a Triangle
6. Python Program to Solve Quadratic Equation
7. Python Program to Swap Two Variables
8. Python Program to Generate a Random Number
9. Python Program to Convert Kilometers to Miles
10. Python Program to Convert Celsius To Fahrenheit
11. Python Program to Check if a Number is Positive, Negative or 0
12. Python Program to Check if a Number is Odd or Even
13. Python Program to Check Leap Year
14. Python Program to Find the Largest Among Three Numbers
15. Python program to do arithmetical operations
16. Python Program to Read a Number n and Compute n+nn+nnnn
17. Python Program to Reverse a Given Number
18. Python Program to Check Whether a Number is Positive or Negative
19. Python Program to Take in the Marks of 5 Subjects and Display the Grade
20. Python Program to Count the Number of Digits in a Number
21. Write a Python program which accepts the radius of a circle from the user and compute
the area.
22. Write a Python program to get the volume of a sphere with radius 7
23. Write a Python program to compute the future value of a specified principal amount, rate
of interest, and a number of years.
Test Data : amt = 10000, int = 3.5, years = 7
Expected Output : 12722.79
24. Write a Python program to compute the distance between the points (x1, y1) and (x2, y2)
25. Write a Python program to find those numbers which are divisible by 7 and multiple of 5,
between 1500 and 2700 (both included).
26. Write a Python program to construct the following pattern, using a nested for loop

*
**
***
****
*****
****
***
**
*
27. Write a Python program that prints all the numbers from 0 to 6 except 3 and 6.
Note : Use 'continue' statement.
Expected Output : 0 1 2 4 5
28. Write a Python program which iterates the integers from 1 to 50. For multiples of three
print "Fizz" instead of the number and for the multiples of five print "Buzz". For numbers
which are multiples of both three and five print "FizzBuzz".
Sample Output :
fizzbuzz
1
2
fizz
4
buzz
29. Write a Python program to create the multiplication table (from 1 to 10) of a number.
30. Write a Python program to construct the following pattern, using a nested loop number

. Expected Output:

1
22
333
4444
55555
666666
7777777
88888888
999999999

You might also like