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. Loop & Recursion

  31. Print natural numbers from 1 to N
  32. Print natural numbers using recursion
  33. Compound interest
  34. Sum of first N natural numbers / Sum of series 1 + 2 + 3 + .. + N
  35. Display N th fibonacci number
  36. Factorial of a number
  37. Count no. of digits
  38. Pattern

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

  56. Find largest element in array
  57. Find smallest element in array
  58. Bitwise operation

  59. Check if a number is even or odd
  60. Matrix

  61. Check equality of two matrices
  62. Matrix addition
  63. Matrix subtraction
  64. Games

  65. Rock paper scissors random approach

Strings

Structure and Union

File Input/Output