Here are some often recommended resources: Exercism , Hackinscience and Practicepython — these are all beginner friendly and difficulty levels are marked Adventofcode , Codewars , Python Morsels — includes more challenging exercises for intermediate to advanced level users Checkio , Codingame , Codecombat — gaming based challenges /r/dailyprogrammer — not active currently, but there's plenty of past challenges with discussions And here are some resources for projects: Projects with solutions — algorithms, data structures, networking, security, databases, etc Project based learning — web applications, bots, data science, machine learning, etc Books: The Big Book of Small Python Projects Tiny Python Projects /r/learnpython: What do you automate with Python at home? Answer from ASIC_SP on reddit.com
🌐
PYnative
pynative.com › home › python exercises
Python Exercises, Practice, Challenges [400+ Exercises] – PYnative
January 7, 2026 - 385+ Python coding exercises with solutions for beginners to advanced developers. Practice 20 topic-wise coding problems, challenges, and programs.
🌐
w3resource
w3resource.com › python-exercises
Python Exercises, Practice, Solution - w3resource
It includes 2029 main exercises, each accompanied by solutions, detailed explanations, and upto four related problems. ... Python is a versatile, high-level language known for its readability and concise syntax. It supports multiple programming paradigms, including object-oriented, imperative, and functional styles. It features dynamic typing, automatic memory management, and a robust standard library. This section is dedicated to practice exercises for those with beginner to intermediate Python skills.
Discussions

Good Python Exercises?
Here are some often recommended resources: Exercism , Hackinscience and Practicepython — these are all beginner friendly and difficulty levels are marked Adventofcode , Codewars , Python Morsels — includes more challenging exercises for intermediate to advanced level users Checkio , Codingame , Codecombat — gaming based challenges /r/dailyprogrammer — not active currently, but there's plenty of past challenges with discussions And here are some resources for projects: Projects with solutions — algorithms, data structures, networking, security, databases, etc Project based learning — web applications, bots, data science, machine learning, etc Books: The Big Book of Small Python Projects Tiny Python Projects /r/learnpython: What do you automate with Python at home? More on reddit.com
🌐 r/learnpython
55
367
December 3, 2022
Exercises foe a beginner to advance in python
Hey Brother, I appreciate your motivation for Python as a language and SQL as a database, I think that's a good combo to think about. Most of the exercises I've been exposed to came from necessity: like components of a project I wanted to conquer. If you (or anyone) are playing with the idea of learning data science related work, I can recommend taking a look at https://inferentialthinking.com/chapters/intro.html , it's a great online eli5 curriculum for learning data science and exploration. The exercises are through the lens of Python, and a UC Berkeley published package 'datascience'. It mirrors the functionality of Pandas for noobies in some respect. I like it anyway. Some of these I've played with in the past, but for real I just poked at CoPilot for some suggestions: Python Exercises: Machine Learning Plus - Python Exercises for Beginners: Python Exercises - Level 1 : This resource offers a variety of beginner-level Python exercises with solutions to help you practice basic concepts. PYnative: Python Exercises, Practice, Challenges : This site provides a wide range of Python exercises, from basic to advanced, along with solutions. CodeChef: Practice Python : Solve over 195 Python coding exercises online to boost your programming skills. Tech With Tim: 9 HOURS of Python Projects - From Beginner to Advanced : A comprehensive video tutorial with over 21 unique Python project walkthroughs. SQL Exercises: LearnSQL.com: Advanced SQL Practice: 10 Exercises with Solutions : This article provides challenging SQL exercises with detailed solutions to enhance your advanced SQL skills. Simplilearn: SQL With Python | Python Database Connectivity Tutorial : A video tutorial that covers SQL and Python database connectivity for beginners. Advanced SQL Tutorial With Examples : An advanced SQL tutorial with practical examples. PYnative: Python Database Programming Exercises : Practice Python database programming skills with step-by-step exercises using MySQL, PostgreSQL, or SQLite. EDIT: Spelling stuff weird. More on reddit.com
🌐 r/learnpython
15
16
October 17, 2024
Looking for practice programming, through exercises, at an incremental level of difficulty

https://projecteuler.net/

You'll also improve your math skills.

More on reddit.com
🌐 r/learnpython
46
171
July 21, 2019
Websites for Python exercises from beginner to intermediate level?
Learn lists and dictionaries next. Then learn input. Exercise: make a basic login program that takes input from user — name and password. Check against dictionary and decide whether that person can log in More on reddit.com
🌐 r/learnpython
3
0
February 27, 2023
🌐
GeeksforGeeks
geeksforgeeks.org › python › python-exercises-practice-questions-and-solutions
Python Exercise with Practice Questions and Solutions - GeeksforGeeks
2 weeks ago - Function With Arguments · First Digit of a Number · Print GFG n times · For more problems and coding practices visit Python Functions Coding Practice Problems · List Traversal · Length of The List · Sum The List · Decrement List Values · Append To List · Less Than · Average · For more problems and coding practices visit Python List Exercise ·
🌐
W3Schools
w3schools.com › python › python_exercises.asp
Python Exercises
Python Variables Variable Names Assign Multiple Values Output Variables Global Variables Variable Exercises Code Challenge Python Data Types
🌐
GitHub
github.com › rameshovyas › 30-Days-of-Python-Exercises
GitHub - rameshovyas/30-Days-of-Python-Exercises: Solutions to the exercises in 30-days-of-python repo | Python Coding Exercises Solutions | Python exercise repository | Python Solutions | Python Learning | Python Practice Exercises and Solutions · GitHub
This repository contains solutions to exercises in https://github.com/Asabeneh/30-Days-Of-Python
Starred by 32 users
Forked by 12 users
Languages   Python 99.5% | PowerShell 0.2% | JavaScript 0.1% | C 0.1% | CSS 0.1% | Batchfile 0.0%
🌐
HackerRank
hackerrank.com › domains › python
Solve Python Code Challenges
A step by step guide to Python, a language that is easy to pick up yet one of the most powerful.
Find elsewhere
🌐
PYnative
pynative.com › home › python exercises › python basic exercise for beginners: 40 coding problems with solutions
Python Basic Exercise for Beginners: 40 Coding Problems with Solutions
February 8, 2026 - Use Online Python Code Editor to solve exercises. Let us know if you have any alternative solutions in the comments section below. This will help other developers. ... Exercise 1. Arithmetic Product and Conditional Logic · Exercise 2. Cumulative Sum of a Range · Exercise 3. String Indexing and Even Slicing · Exercise 4. String Slicing and Substring Removal · Exercise 5. Variable Swapping (The In-Place Method) Exercise 6. Calculating Factorial with a Loop
🌐
GitHub
github.com › zhiwehu › Python-programming-exercises › blob › master › 100+ Python challenging programming exercises for Python 3.md
Python-programming-exercises/100+ Python challenging programming exercises for Python 3.md at master · zhiwehu/Python-programming-exercises
Solution: def f(n): if n == 0: return 0 elif n == 1: return 1 else: return f(n-1)+f(n-2) n=int(input()) print(f(n)) The Fibonacci Sequence is computed based on the following formula: f(n)=0 if n=0 f(n)=1 if n=1 f(n)=f(n-1)+f(n-2) if n>1 ·
Author   zhiwehu
🌐
Practice Python
practicepython.org › exercises
Exercises and Solutions
Why Practice Python? Why Chilis? Resources for learners · Exercises · Blog · About · 1: Character Input · 2: Odd Or Even · 3: List Less Than Ten · 4: Divisors · 5: List Overlap · 6: String Lists · 7: List Comprehensions · 8: Rock Paper Scissors · 9: Guessing Game One ·
🌐
Exercism
exercism.org › tracks › python › exercises
Python exercises on Exercism
Learn and practice Python by completing 146 exercises that explore different concepts and ideas.
🌐
Invent with Python
inventwithpython.com › pythongently
Python Programming Exercises, Gently Explained - Invent with Python
Other tutorials and books have taught you the basics of Python, but the 42 programming exercises in this book let you practice what you've learned. Selected for their simplicity, these programming problems include gentle explanations of the problem, the prerequisite coding concepts you’ll need to understand the solution, and helpful templates to put together the programs if you have trouble starting from scratch.
🌐
Google
developers.google.com › google for education › python › basic python exercises
Basic Python Exercises | Python Education | Google for Developers
wordcount.py -- this larger, summary exercise in wordcount.py combines all the basic Python material in the above sections plus Python Dicts and Files (a second exercise is available in mimic.py) With all the exercises, you can take a look at our solution code inside the solution subdirectory.
🌐
Reddit
reddit.com › r/learnpython › exercises foe a beginner to advance in python
r/learnpython on Reddit: Exercises foe a beginner to advance in python
October 17, 2024 -

Hi. I am looking for exercises in python and sql both in beginner level to advance. Can anyone suggest me some links for preparation.

Top answer
1 of 4
6
Hey Brother, I appreciate your motivation for Python as a language and SQL as a database, I think that's a good combo to think about. Most of the exercises I've been exposed to came from necessity: like components of a project I wanted to conquer. If you (or anyone) are playing with the idea of learning data science related work, I can recommend taking a look at https://inferentialthinking.com/chapters/intro.html , it's a great online eli5 curriculum for learning data science and exploration. The exercises are through the lens of Python, and a UC Berkeley published package 'datascience'. It mirrors the functionality of Pandas for noobies in some respect. I like it anyway. Some of these I've played with in the past, but for real I just poked at CoPilot for some suggestions: Python Exercises: Machine Learning Plus - Python Exercises for Beginners: Python Exercises - Level 1 : This resource offers a variety of beginner-level Python exercises with solutions to help you practice basic concepts. PYnative: Python Exercises, Practice, Challenges : This site provides a wide range of Python exercises, from basic to advanced, along with solutions. CodeChef: Practice Python : Solve over 195 Python coding exercises online to boost your programming skills. Tech With Tim: 9 HOURS of Python Projects - From Beginner to Advanced : A comprehensive video tutorial with over 21 unique Python project walkthroughs. SQL Exercises: LearnSQL.com: Advanced SQL Practice: 10 Exercises with Solutions : This article provides challenging SQL exercises with detailed solutions to enhance your advanced SQL skills. Simplilearn: SQL With Python | Python Database Connectivity Tutorial : A video tutorial that covers SQL and Python database connectivity for beginners. Advanced SQL Tutorial With Examples : An advanced SQL tutorial with practical examples. PYnative: Python Database Programming Exercises : Practice Python database programming skills with step-by-step exercises using MySQL, PostgreSQL, or SQLite. EDIT: Spelling stuff weird.
2 of 4
2
I would consider to build something. Just building stuff elevated my skills the most at some point. You learn so much.
🌐
Madhya Pradesh Bhoj Open University
mpbou.edu.in › uploads › files › Python_Workbook_Learn_How_to_Quickly_and_Effectively_Program_with_Exercises,_Projects,_and_Solutions_(Programming_Languages_Academy)_(1).pdf pdf
Python Workbook
It does take time for one to be fully familiar with the syntax, but once · you are familiar, you should have no trouble figuring this out. Visit any of the old exercises we did in the previous book. Try and match the · way the code was written to the ones presented here. You should have your ... Let us now begin a series of questions to test your understanding. Q-2: How can you check if you have Python 3.8.x installed on your
🌐
Mimo
mimo.org › blog › 15-python-exercises-for-absolute-beginners
15+ Python Assignments for Absolute Beginners (with Solutions and Explanations)
April 1, 2025 - Python string exercises with solutions: A selection of Python assignments to help you understand strings
🌐
LearnPython.com
learnpython.com › blog › python-practice-exercises-for-beginners
10 Python Practice Exercises for Beginners with Solutions | LearnPython.com
October 16, 2023 - Some of these practice exercises have a few possible solutions, so also try to come up with an alternative solution after you’ve gone through each exercise. Let’s get started! Write a program that asks the user for a number then prints the following sentence that number of times: ‘I am back to check on my skills!’ If the number is greater than 10, print this sentence instead: ‘Python conditions and loops are a piece of cake.’ Assume you can only pass positive integers.
🌐
pychallenger
pychallenger.com
Python Exercises Online | Learn & Practice Python with Pychallenger
We offer a carefully designed mix of bite-sized lessons, Python coding exercises, and engaging quizzes. ... Run code example to continue! ... Run code example to continue! ... Learn new topics in small, compact lessons where new content is explained with real-world examples and information is given step-by-step in bite-sized pieces.
🌐
w3resource
w3resource.com › python-exercises › python-basic-exercises.php
Python Basic: Exercises, Practice, Solution - w3resource
May 17, 2025 - This resource offers a total of 750 Python Basic problems for practice. It includes 150 main exercises, each accompanied by solutions, detailed explanations, and four related problems.