python-logo
python-logo

We have written detailed tutorials for the Python Programming language. Now it is time to put our knowledge to practice and since we all know the best way to learn is by doing practice.

We advise you to read the article, understand what we want to implement, and also try these examples yourself. So, let’s go and put our knowledge to work. Happy learning ?

Please find here Complete Python Programming Tutorials.

Note:- All the tutorials already visited/read will be marked in red color.

Basic Python Programs

  1. Add Two Numbers in Multiple Ways
  2. Find the Square Root
  3. Calculate the Area of a Triangle
  4. Solve Quadratic Equation
  5. Swap Two Variables
  6. Convert Kilometers to Miles
  7. Convert Celsius To Fahrenheit
  8. Print Output Without a Newline
  9. The Easiest way to Generate Random Numbers in Python

Decision Making & Loops Python Programs

  1. Check if a Number is Positive, Negative or 0
  2. Python Program to Check if a Number is Odd or Even
  3. Python Program to Check Leap Year
  4. Python Program to Find the Largest Among Three Numbers
  5. Python Program to Check Prime Number
  6. Python Program to Print all Prime Numbers in an Interval
  7. Python Program to Find the Factorial of a Number
  8. Python Program to Print the Fibonacci sequence
  9. Python Program to Check Armstrong Number
  10. Python Program to Find the Sum of Natural Numbers
  11. Python Program to Find Armstrong Number in an Interval
  12. Python Program to Display the multiplication Table
  13. Python Program to Reverse a Number
  14. Python Program to Compute the Power of a Number

Python Dictionary Example Programs

  1. Convert a list of Tuples into Dictionary in Python?
  2. How to Merge Two Dictionaries in Python?
  3. Given a dictionary and a character array, print all possible valid words
  4. How to sort a list of dictionaries by values in Python
  5. How to remove a key from a dictionary in Python?
  6. How to find the sum of all items in a dictionary in Python?
  7. How to Extract Unique dictionary values in Python?
  8. How to Iterate Over Dictionaries Using for Loop in Python?

Python List Example Programs

  1. How do I make a flat list out of a list of lists in Python?
  2. How to find the index of an item in a list in Python?
  3. How to access the index in ‘for’ loops?
  4. How do I concatenate two lists in Python?
  5. How do I check if a list is empty in Python?
  6. What is the difference between Python’s list methods append and extend?
  7. How do I split a list into equally-sized chunks in Python?
  8. How do I get the first and last elements of a list in Python?
  9. How do I sort a list of dictionaries by a value of the dictionary in Python?
  10. How can I randomly select an item from a list?
  11. How do I get the number of elements in a list (length of a list) in Python?
  12. How to remove an element from a list by index?
  13. How to remove duplicates in lists and preserve the order?
  14. How do I reverse a list or loop over it backwards?
  15. How do I iterate through two lists in parallel?
  16. A simple way to delete a list element by value?
  17. How to concatenate (join) items in a list to a single string?
  18. How to write a list to a file with Python, with newlines?
  19. How to define a two-dimensional array using lists in Python?
  20. How to perform a transformation operation on each element in a list?
  21. Python Program to find the sum and average of List elements?
  22. Python Program to find the min and max in the List?
  23. Python Program to find the second largest ad second smallest number in the List?
  24. How to get a list of keys or values from dictionary?
  25. How to merge lists into a list of tuples?
  26. How do I subtract one list from another?
  27. How to generate all permutations of a list in Python?

Helpful Links

Please follow the Python tutorial series or the menu in the sidebar for the complete tutorial series.

Also for examples in Python and practice please refer to Python Examples.

Complete code samples are present on Github project.

Recommended Books


An investment in knowledge always pays the best interest. I hope you like the tutorial. Do come back for more because learning paves way for a better understanding

Do not forget to share and Subscribe.

Happy coding!! ?