🌐
PYnative
pynative.com › home › python exercises
Python Exercises, Practice, Challenges [570+ Exercises] – PYnative
571 Python coding exercises with solutions for beginners to advanced developers. Practice 20 topic-wise coding problems, challenges, and programs.
🌐
GeeksforGeeks
geeksforgeeks.org › python › python-exercises-practice-questions-and-solutions
Python Exercise with Practice Questions and Solutions - GeeksforGeeks
6 days ago - This collection of Python coding practice problems is designed to help you improve your overall programming skills in Python. The links below lead to different topic pages, each containing coding problems, and this page also includes links to quizzes. You need to log in first to write your code.
Discussions

Resource: Python Exercises, Practice Problems and Solutions for Beginners
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 More on reddit.com
🌐 r/learnpython
20
234
July 17, 2018
Looking for easy Python challenges

I always like to point new learners at edabit.com. They have Python challenges that can be sorted from easiest to hardest, so you can start easy and work your way up.

More on reddit.com
🌐 r/learnpython
8
9
October 4, 2018
So where can i find python coding challenges for amateurs?

There's codewars and you could try the adventofcode

More on reddit.com
🌐 r/learnpython
53
284
February 26, 2019
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
🌐
HackerRank
hackerrank.com › domains › python
Solve Python Code Challenges
Join over 28 million developers in solving code challenges on HackerRank, one of the best ways to prepare for programming interviews.
🌐
CodingBat
codingbat.com › python
CodingBat Python
CodingBat code practice · Welcome to Codingbat. See help for the latest. Python Example Code · Python Strings · Python Lists · Python If Boolean · Code Badges ·
🌐
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. "
🌐
w3resource
w3resource.com › python-exercises
Python Exercises, Practice, Solution - w3resource
October 29, 2025 - 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.
🌐
GitHub
github.com › ProgrammingHero1 › 100-plus-python-coding-problems-with-solutions
GitHub - ProgrammingHero1/100-plus-python-coding-problems-with-solutions: A list of python problems for beginners and intermediate developers · GitHub
A list of python problems for beginners and intermediate developers - ProgrammingHero1/100-plus-python-coding-problems-with-solutions
Starred by 945 users
Forked by 384 users
Find elsewhere
🌐
Codio
codio.com › blog › five-python-coding-challenges-for-you-and-your-students
5 Python Coding Challenges for You & Your Students | Codio
October 20, 2023 - The following instructions can be passed on to your students to help them create a solution. If the year is evenly divisible by 4, go to step 2. Otherwise, go to step 5 · If the year is evenly divisible by 100, go to step 3. Otherwise, go to step 4 · If the year is evenly divisible by 400, go to step 4. Otherwise, go to step 5 ... Write a program to output the “times table” for the number 12. The output should be 10 rows: 1 x 12 is 12 2 x 12 is 24 (3-9 x 12) 10 x 12 is 120 · Did you know? These challenges are available right now on Codio.
🌐
Programiz PRO
programiz.pro › community-challenges › python
Python Coding Challenges | Programiz PRO
Sharpen your Python skills with 600+ coding challenges and compete with other challengers to stay on the leaderboard. Available for all levels. Start Now.
🌐
101 Computing
101computing.net › home › python challenges – beginner level
Python Challenges – Beginner Level - 101 Computing
January 16, 2020 - How tall is Big Ben? (Python Challenge) The Explorer’s Challenge: Naming New Species with Code · The Egg Farmer’s Puzzle · For Loops Challenges · Endurance Shipwreck Search Expedition · The Coffee Shop – Price Calculator · Ice Cream Price Calculator ·
🌐
Reddit
reddit.com › r/learnpython › so where can i find python coding challenges for amateurs?
r/learnpython on Reddit: So where can i find python coding challenges for amateurs?
February 26, 2019 -

I was trying to look for python challenges to help pratice but i can't find any? is there a place other than project euler where i can do challange coding exercises. I think project euler can be very complex and isnt suitable for me who's still trying to get familiar enough with the language ( coding on and off with python for a year )

🌐
Elhacker
elhacker.info › manuales › Lenguajes de Programacion › Python › Python by Example @techbook_pro.pdf pdf
Python by Example: Learning to Program in 150 Challenges
Python is today’s fastest growing programming language. This engaging and refreshingly · different guide breaks down the skills into clear step-by-step chunks and explains the the- ory using brief easy-to-understand language. Rather than bamboozling readers with pages · of mind-numbing technical jargon, this book includes 150 practical challenges, putting
🌐
Udemy
udemy.com › development
Python Coding Challenges With Solutions For Beginners
March 25, 2024 - Our course is structured to provide you with a comprehensive learning experience. Each module consists of a series of coding exercises covering different programming concepts and techniques. You'll have the opportunity to practice solving these exercises on your own and then check your solutions against detailed explanations provided by our instructors. ... Fundamental Python Concepts: Reinforce your understanding of Python fundamentals through practical coding challenges.
Rating: 3.3 ​ - ​ 12 votes
🌐
Medium
medium.com › @natasulak › intermediate-coding-challenges-with-solutions-python-c-8a3485046b76
Intermediate Coding Challenges with Solutions (Python & C++) | by Nata Sulakvelidze | Medium
July 27, 2024 - def longest_substring_without_repeating(s): char_index = {} # Dictionary to store the last index of each character start = 0 # Start index of the current substring max_length = 0 # Maximum length of substring without repeating characters longest_substr = "" # The longest substring without repeating characters for end, char in enumerate(s): if char in char_index and char_index[char] >= start: # Move the start index to one past the last occurrence of the current character start = char_index[char] + 1 char_index[char] = end # Update the last index of the current character current_length = end - s
🌐
Hyperskill
hyperskill.org › blog › post › python-coding-challenges
Python Coding Challenges for All Level Developers | Hyperskill Blog
December 4, 2025 - From beginner to pro: 15 Python coding challenges for all levels to test your skills, solve real problems, and master Python step by step.
🌐
Codecademy
codecademy.com › home › 12 python code challenges for beginners
12 Python Code Challenges for Beginners
May 13, 2025 - Code challenges are a fun way to test your coding skills. Practice your Python skills with these 12 Python code challenges for beginning programmers.
🌐
101 Computing
101computing.net › home › python challenges – intermediate level
Python Challenges – Intermediate Level - 101 Computing
January 16, 2020 - Minecraft + Python Challenges · Getting Started with Pygame · Using text files in Python · London 2012 · HTML Code Builder (in Python) Calculating Pi using a Python script · Word Score Challenge · Name the colour · My thesaurus · Where are you calling from?