Python Programming Examples

Python Programming Topics

Basic Programs

  1. Addition program in python
  2. Python program to reverse a number
  3. Python program to check armstrong number
  4. Python program to calculate area of circle
  5. Python program for simple interest
  6. Python program for compound interest
  7. Python program to check prime number
  8. Python program to print all prime numbers in an interval
  9. Factorial of a number in python
  10. Python program to print ascii value of a character
  11. Python program to find sum of squares of first n natural numbers
  12. Python program to find sum of cubes of first n natural numbers
  13. Python program for fibonacci series
  14. Python program to find sum of digits of a number
  15. Python program to swap two variables without using temporary variable
  16. Python program to check if given number is palindrome
  17. Python program to check whether a given number is positive or negative
  18. Python Program to Count Digits in Given Number
  19. Python program to print all odd numbers in a given range
  20. Python program to find largest among three numbers
  21. Python program to print an identity Matrix
  22. Python program to find LCM of two numbers

List Programs

  1. Python program to calculate the average of n numbers in a given list

Recursion Programs

  1. Factorial of a number using recursion in python

Comments