Python Exercises

Free Coding Exercises for Python Developers. This Python exercise is a FREE course that will help you become more familiar with Python.
Exercises cover Python Basics, Data structure to Data analytics. 

What included in these Python Exercises?

As of now, this page contains 16 Exercises.

All exercises are tested on Python 3. Each exercise contains specific Python topic questions you need to practice and solve. When you complete each exercise, you will have a better understanding of Python. 

These exercises are nothing but Python assignments for the practice where you need to solve different questions and problems. Solution is provided for each practice question. Using these exercises, you can practice various Python problems, questions, programs, and challenges.

Each Exercise has 10 Questions. The solution provided for every question. Practice each Exercise in Code Editor.

These Python programming exercises are suitable for any Python developer. If you are a beginner, you will have a better understanding of Python after solving these exercises.

Below is the list of exercises, select the exercise you want to solve. All the Best.

Basic Exercise for Beginners

Practice and Quickly learn Python necessary skills by solving simple questions and problems.

Topics: Variables, Operators, Loops, String, Numbers, List

Python Input and Output Exercise

Practice and learn the input and output operations in Python. Also, we will practice file handling in Python.

Topics: print() and input(), File I/O

Python Loop Exercise

This Python loop exercise aims to help Python developers to learn and practice branching and Looping techniques in Python.

Topics: If-else conditions, for loop, and while loop.

Python Functions Exercise

Learn and practice how to create a function, nested functions, and use the function arguments effectively in Python.

Topics: Functions arguments, built-in functions

Python String Exercise

Solve Python String exercise to learn and practice String operations and manipulations.

Topics: String

Python Data Structure Exercise for Beginners

Practice widely used Python types such as List, Set, Dictionary, and Tuple operations in Python

Topics: list, dict, set, tuple, string

Python List Exercise

This Python list exercise aims to help Python developers to learn and practice list operations.

Topics: list

Python Dictionary Exercise

This Python dictionary exercise aims to help Python developers to learn and practice dictionary operations.

Topics: Dictionary, dict

Python Set Exercise

This Python set exercise aims to help Python developers to learn and practice set operations.

Topics: set

Python Tuple Exercise

This Python tuple exercise aims to help Python developers to learn and practice tuple operations.

Topics: tuple

Python JSON Exercise

Practice and Learn JSON creation, manipulation, Encoding, Decoding, and parsing using Python

Topics: JSON

Python NumPy Exercise

Practice NumpPy questions such as Array manipulations, numeric ranges, Slicing, indexing, Searching, Sorting, and splitting and more

Topics: NumPy

Python Pandas Exercise

Practice Data Analysis using Python Pandas. Practice Data-frame, Data selection, group-by, Series, sorting, searching, and statistics

Topics: Pandas

Python Matplotlib Exercise

Practice Data visualization using Python Matplotlib. Line plot, Style properties, multi-line plot, scatter plot, bar chart, histogram, Pie chart, Subplot, stack plot.

Topics: Matplotlib

Python Random Data Generation Exercise

Practice and Learn the various techniques to generate random data in Python.

Topics: random module, secrets module, UUID module

Python Database Exercise

Practice Python database programming skills by solving the questions step by step.

Use any of the MySQL, PostgreSQL, SQLite to solve the exercise.

Did you find Exercises Helpful? Let others know about it.  Sharing helps me continue to create free Python resources, Exercises, and Quizzes

Is this article/website helpful?

Join Our Newsletter

Subscribe today and receive New Python Tutorials, Exercises, Tips, and Tricks straight in your inbox.