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 [385+ 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.
🌐
GeeksforGeeks
geeksforgeeks.org › python › python-exercises-practice-questions-and-solutions
Python Exercise with Practice Questions and Solutions - GeeksforGeeks
1 week 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 ·
🌐
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%
🌐
Reddit
reddit.com › r/learnpython › resource: python exercises, practice problems and solutions for beginners
r/learnpython on Reddit: Resource: Python Exercises, Practice Problems and Solutions for Beginners
July 17, 2018 -

Hey guys, I am new to Python and programming in general. I started learning Python with the help of a few great book suggestions (beginners: take a look at the Learning Resources link to the left) and an online course. One thing that was frustrating to me was that I felt that I needed to solve more problems, that the concepts were unclear but there were few/no exercises to evaluate myself with.

Today I found this: Python Exercises, Practice, Solution | w3resource

This is exactly what I was looking for. I think this will be very helpful for beginners like me, particularly in cases where you don't have a classroom/mentor to discuss problems with. Sorry if this is already covered in Learning Resources or any sticky threads.

Top answer
1 of 5
44
If you're aiming to improve your problem solving skill try the following sites: codesignal.com | www.coderbyte.com | www.codewars.com With that being said, above all, it’s important that you learn to think like a programmer! The bellow paragraphs is a VERY important concept extracted from Jean Paul Knight book titled: “LEARN PYTHON WITH NO PROGRAMMING EXPERIENCE” [ a book that I will strongly suggest you to buy an read ] There is a way that programmers think that is different from the rest of the world. If you want to understand functions and other programming concepts, you must have the right mindset. Why is it important to think like a programmer? Before we go deeper into functions and other Python concepts, we must look at a crucial mindset. The mindset of a programmer. When you have this mindset, you will find it much easier to bridge the gap between beginner and intermediate. You will also be able to quickly remove any mental block that cause you to struggle. On the other hand, without the right mindset you may find yourself stuck way too often. You may find it hard to progress beyond tutorials. In particular, it may be hard to start making your own programs. Worse still, documentation ( often badly written ) will be enough to stop you in your tracks. There is another reason why having the right mindset is important. If you are using Python to automate stuff, you’ll be more likely to find quick solutions. If Python is required for you job, you will write code that impresses your peers, and more importantly your boss. Even if you code for yourself, the right kind of thinking will make your work easier, faster, and more efficient. Don’t skip the mindset bit! I believe the biggest reason why people get stuck in “newbie” mode is not understanding how programming works. Let’s take a deeper look. What does thinking like a programmer mean? For the purpose of this guide, we will use a very simple defition. A programmers mindset is a way of thinking that focuses on creating useful and practical solutions to problems. It means you grasp the basic fundamentals that make you a good programmer. The challenge is, that the programmers mindset doesn’t have much to do with coding. That’s what trips up many beginners. For instance, many people spend a lot of time on syntax. It’s kind of like putting on a stage show. The hard work happens during the reahersals, behind the scenes. Then, When it comes to programming, most of your work happens before you start up your favorite code editor. The biggest mistake beginners make is… …focusing too much on the code. Yet, there are two skills that will make you a master - neither of them involve writing code. They are: Knowing how to learn Knowing how to solve problems. Great programmers always keep learning. There is no programmer who knows it all. So, as you progress you will always find yourself learning new libraries. You will also discover new concepts along the way. The key to becoming better is accepting that you’ll always be a learner. For this reason, you need to have skills that allow you to learn quickly. The other keys is knowing how to solve problems. When it comes to problem solving, the computer is not your best friend. In fact, the computer is your servant but we’ll come back to that later. Your true best friend is a piece of paper ( and a pen! ) As a good programmer, you’ll need to be able to solve problems using pen and paper. Then, once you’ve solved the problem, you use the solution as your guide when writing the code. “OK, so what happens next?” Next we’re going to mix up learning Python with learning the right mindset. That way, you’ll naturally absorb the concepts you need to grasp. As a result, you’ll become better at using functions. At the same time, your overall programming skills will go to the next level. Let’s go! It’s time to discover why you need functions in the first place… Support the Author by getting his book HERE
2 of 5
9
https://projecteuler.net/ " Project Euler is a series of challenging mathematical/computer programming problems that will require more than just mathematical insights to solve. Although mathematics will help you arrive at elegant and efficient methods, the use of a computer and programming skills will be required to solve most problems. The motivation for starting Project Euler, and its continuation, is to provide a platform for the inquiring mind to delve into unfamiliar areas and learn new concepts in a fun and recreational context. "
🌐
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
Find elsewhere
🌐
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.
🌐
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
🌐
Exercism
exercism.org › tracks › python › exercises
Python exercises on Exercism
Learn and practice Python by completing 146 exercises that explore different concepts and ideas.
🌐
Code with Mosh
forum.codewithmosh.com › python
I need more Exercises - Python - Code with Mosh Forum
March 6, 2023 - I need more exercise examples to practice Python. Can someone help me where can I find it ?
🌐
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
🌐
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.
🌐
Brianheinold
brianheinold.net › python › worked_exercises.html
Worked Python exercises
From time to time, people ask me for solutions to the exercises for my Python book.
🌐
Python Crash Course
ehmatthes.github.io › pcc_2e › solutions › solutions
Solutions - Python Crash Course, 2nd Edition
Solutions for selected exercises from each chapter can be found below. Be careful about looking at the solutions too quickly; make sure you’ve given yourself time to wrestle with the concepts you just learned before looking at a solution.
🌐
Quora
quora.com › Can-you-give-me-links-to-advanced-Python-programming-problems-exercises
Can you give me links to advanced Python programming problems/exercises? - Quora
Answer (1 of 3): If you know the basics of the language and are also interested in maths then the Euler project is a great website with math related problems which can be solved using some neat Python code. The answers should all be solvable using code that is ran for 1 minute maximum. Of course ...
🌐
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
🌐
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 ·
🌐
Dataquest
dataquest.io › blog › python-practice
Online Python Practice Exercises for 2026
3 weeks ago - Explore Python practice exercises, including free coding challenges, hands-on courses, and step-by-step tutorials.