List of Python Programs

Here is the list of all Python programs available in this blog. You can find basic level programs as well as advanced level programs. All of these programs have been categorised below. Click on the buttons inside the tabbed menu to explore those categories.


    Basic

  1. Hello, World! Program
  2. Addition, subtraction, multiplication and division
  3. Convert a character to ASCII value
  4. Convert ASCII value to a character
  5. Compute Quotient and Remainder
  6. Swap two numbers without third variable
  7. Swap two numbers using third variable
  8. Swap two numbers using X-OR
  9. Fahrenheit to Celsius conversion
  10. Centigrade to Fahrenheit conversion
  11. Simple interest
  12. Calculate percentage of a number
  13. Conversion between Kilograms and Grams
  14. Decision making

  15. Check vowel or consonant
  16. Check if a character is a digit
  17. Conversion between uppercase and lowercase letter
  18. Check if a number is positive or negative
  19. Check if a number is even or odd
  20. Find largest among three numbers
  21. Check if a number is a perfect square
  22. Check leap year
  23. Simple calculator
  24. Calculate profit and loss
  25. Roots of quadratic equation
  26. Find the letter grade of a student
  27. Find the age group
  28. Calculate income tax
  29. Display month according to input number
  30. Conversion between 12-hour and 24-hour time format
  31. Loop & Recursion

  32. Print natural numbers from 1 to N
  33. Print natural numbers using recursion
  34. Compound interest
  35. Sum of first N natural numbers / Sum of series 1 + 2 + 3 + .. + N
  36. Display N th fibonacci number
  37. Factorial of a number
  38. Count no. of digits
  39. Reverse of a number
  40. Check perfect number
  41. Display multiplication table
  42. Pattern

  43. Square pattern
  44. Rectangle pattern
  45. Rhombus pattern
  46. Half diamond pattern
  47. Diamond pattern
  48. Right triangle, Half pyramid pattern
  49. Full pyramid pattern
  50. Inverted full pyramid pattern
  51. Snake number pattern
  52. Spiral pattern
  53. Hollow rectangle pattern
  54. Hollow rhombus pattern
  55. Hollow diamond pattern
  56. Hollow pyramid pattern
  57. Floyd's triangle pattern
  58. Pascal's triangle pattern
  59. Array

  60. Find largest element in array
  61. Find smallest element in array
  62. Bitwise operation

  63. Check if a number is even or odd
  64. Matrix

  65. Check equality of two matrices
  66. Matrix addition
  67. Matrix subtraction
  68. Geometry

  69. Calculate the Area, Perimeter and Diagonal of a square
  70. Games

  71. Rock paper scissors random approach

Strings

Structure and Union

File Input/Output