Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
8 views3 pages

Loop 58585

The document outlines a series of programming tasks to be completed in Python, focusing on various concepts such as loops, conditionals, and mathematical calculations. It includes tasks for displaying messages, generating series, calculating sums and averages, and checking for prime and perfect numbers. The tasks are designed to enhance programming skills and understanding of Python language fundamentals.

Uploaded by

23egjcs158
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)
8 views3 pages

Loop 58585

The document outlines a series of programming tasks to be completed in Python, focusing on various concepts such as loops, conditionals, and mathematical calculations. It includes tasks for displaying messages, generating series, calculating sums and averages, and checking for prime and perfect numbers. The tasks are designed to enhance programming skills and understanding of Python language fundamentals.

Uploaded by

23egjcs158
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/ 3

CIN: U80904BR2013PTC020489

Rays Edutech Private Limited


APPLICAtions BASED On SIMPLe WHILe ANd FOr STRUcTURe

1. Wap in “Python‟ language to display “Python is General Purpose language” five times.

2. Wap in “Python‟ language to display “I like „Python‟ very much!” three times and each after two
lines.

3. Wap in “Python‟ language to display “I like „Python‟ very much!” continuously until a zero is
pressed.

4. Wap in “Python‟ language to display the counting starting from 1 and up to 30.

5. Wap in “Python‟ language to display the following format: -

 1 2 3 ......................... Up to 19
 1 3 5 ......................... Up to 19
 1 4 7 ......................... Up to 19

 19 18 17 .................... Up to 1
 19 17 15 .................... Up to 1
 19 16 13 .................... Up to 1

 2 4 8 .......................... Up to 20
 3 6 9 .......................... Up to 30
 4 8 12 ........................ Up to 40

 20 18 16 ..................... Up to 2
 30 27 23 ..................... Up to 3
 40 38 36 ..................... Up to 4

 1 4 9 ........................... Up to 100
 1 8 27 ......................... Up to 1000
 1 16 81 ....................... Up to 10000

 1 10 100 ..................... Up to 1000000000


 1000000000 ................... Up to 1

 123456789
 987654321

6. Wap in “Python‟ language to accept thirty numbers calculate and display the sum, product
and average value.

7. Wap in “Python‟ language to accept N numbers calculate and display the sum, product and
average value.
CIN: U80904BR2013PTC020489

Rays Edutech Private Limited


8. Wap in “Python‟ language to accept N numbers calculate and display the total count of even and
odd numbers.

9. Wap in “Python‟ language to accept N numbers calculate and display the total count of +ve even
and -ve odd numbers.

10. Wap in “Python‟ language to accept N characters one-by-one calculate and display the total count
of digits and alphabets.

11. Wap in “Python‟ language to accept N numbers check and display the smallest and largest value.

12. Wap in “Python‟ language to accept a number calculates and display the total count of digits.

13. Wap in “Python‟ language to accept a number calculates and display the sum, product and
average of the digits.

14. Wap in “Python‟ language to generate even series from 1 to 50.


15. Wap in “Python‟ language to generate odd series from 1 to 50.
16. Wap in “Python‟ language to accept a number, display it in reverse order
17. Wap in “Python‟ language to generate a table of any number.
18. Wap in “Python‟ language to accept a number, check and display whether the number is prime or not.
19. Wap in “Python‟ language to accept initial and final position and find the prime numbers between the
initial and final position.
20. Wap in “Python‟ language to accept a number, check and display message whether it perfect number
or not.
21. Wap in “Python‟ language to accept a number, check and display whether the number is Armstrong
or not.
22. Wap in “Python‟ language to accept initial and final position, print Armstrong number between initial
and final position.
23. Wap in “Python‟ language to accept a number and display its factorial value.

28. Wap in “Python‟ language to accept two numbers check and display the Highest Common Factor
or Greatest Common Factor
.
29. Wap in “Python‟ language to accept two numbers check and display the Lowest Common Factor .

30. Wap in “Python‟ language to display 20 terms of Fibonacci series . (i.e 0,1,1,2,3, . ).

31. Wap in “Python‟ language to accept a positive integer value, determine and print its binary
equivalent.

32. Wap in “Python‟ language to accept a positive value, convert into hexadecimal equivalent.
CIN: U80904BR2013PTC020489

Rays Edutech Private Limited

33. Wap in “Python‟ language to display the total count of Leap Years between 1000 and 2009.

34. Wap in “Python‟ language to calculate and display the sum of the following series: -

 1 + 2 + 3 + ….. + Up to N terms.
 12 + 22 + 32 + ….. + Up to N terms.
 1 + X2 + X3 + ….. + Up to N terms.
 1 + 1/X + 1/X2 + ….. + Up to N terms.
 X + X2/2! + X3/3! + …..+ Up to N terms.
 X - X3/3! + X5/5! - ….. + Up to N terms.
 X2/2! - X4/4! + X6/6! - …. + Up to N terms.
 1 - X2/2! + X4/4! - X6/6! + ..… - Up to N terms.

35. Wap in “Python‟ language to calculate and display the Fibonacci series up to n terms.

[Hint: 0 1 1 2 3 5 8 13 21 …..]

36. Write a program in “Python‟ to generate the following given series:-

a. 1 b. 1 c. 11111 d. 5 e. 0 f. 12345
12 21 1111 55 101 23451
123 321 1 11 555 21012 34512
1234 4321 11 5555 3210123 45123
12345 54321 1 55555 432101234 51234
h. I. J. K.
* * * 0
** ** *** 10
*** *** ***** 010
**** ******* 1010
**** 01010
****** ****** *********

You might also like