0% found this document useful (0 votes)
2 views10 pages

Python Programs

The document outlines a series of programming tasks categorized into three sections: Operators Programs, Range Programs, and List Programs. Each section contains specific programming exercises, such as basic arithmetic operations, printing sequences of numbers, and manipulating lists. The tasks range from simple operations like addition and subtraction to more complex tasks like calculating factorials and sorting lists.

Uploaded by

mrpresidentop01
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views10 pages

Python Programs

The document outlines a series of programming tasks categorized into three sections: Operators Programs, Range Programs, and List Programs. Each section contains specific programming exercises, such as basic arithmetic operations, printing sequences of numbers, and manipulating lists. The tasks range from simple operations like addition and subtraction to more complex tasks like calculating factorials and sorting lists.

Uploaded by

mrpresidentop01
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

OPERATORS PROGRAMS (1–10)

1. Write a program to add two


numbers.

2. Write a program to subtract two


numbers.

3. Multiplication of Two Numbers

4. Division of 2 numbers
5. Quotient and Remainder

6. Square of a Number

7. Cube of a Number

8. Swap two numbers using third


variable
9. Swap Two Numbers Without
Third Variable

10. Simple Interest

RANGE PROGRAMS (11–18)


11. Write a program to print
numbers from 1 to 10 using
range.

12. Write a program to print


numbers from 1 to 5.
13. Print even numbers from 1 to
10

14. Print odd numbers from 1 to


10

15. Write a program to print


numbers from 5 to 1

16. Print multiple of 5 till 43

17. Print numbers from 10 to 15


18. Print Numbers Divisible by 3
from 1 to 100

LIST PROGRAMS (19–30)


19. Write a program to create a
list of 5 numbers.

20. Write a program to print all


elements of a list.

21. Write a program to find length


of a list.
22. Write a program to add an
element to a list.

23. Write a program to remove an


element from a list.

24. Write a program to find


maximum element in a list.

25. Write a program to find


minimum element in a list.

26. Write a program to calculate


sum of all elements in a list.
27. Write a program to calculate
average of list elements.

28. Write a program to reverse a


list.

29. Sort the numbers

30. Search a number

31. Print Numbers from 1 to 100


32. Sum of First 10 Natural
Numbers

33. Factorial of a number

34. Multiplication Table of a


Number

35. Count digits in a number


36. Sum of Digits

37. Reverse a number

38. Check positive or negative


number

39. Check Even or Odd Number


40. Greatest between three
numbers

You might also like