Learning Python isn't really about reading Python.
It's about writing it.
A student can explain what a variable is, recognise an if statement and tell you what a loop does.
Then you give them a blank Python editor.
Suddenly, it's different.
That's why Python challenges for beginners can be so useful. Instead of asking students to “learn Python”, you give them one small problem to solve.
Then another.
Then another.

Why Python Challenges Work for Beginners
“Learn Python” is a big goal.
“Print your name” isn't.
Neither is “calculate the area of a rectangle” or “check whether a number is odd or even”.
Small Python coding challenges break programming into manageable problems. Students write something, run it, debug it and try again.
That process matters.
Because eventually, they stop just learning about code.
They start writing it.

30 Beginner Python Exercises: From Output to a Simple Game
The 30 Days of Python Challenge is organised into six levels, with five challenges in each.
The difficulty gradually increases as students develop their Python programming skills.
Level 1: Output — Challenges 1–5
Students start with one of the first things most beginner programmers learn: print().
The challenges include printing “Hello, world!”, displaying their name, creating multiple lines of output and making a simple welcome banner.
Small tasks. Quick results.
Exactly what a beginner needs.
Level 2: Variables — Challenges 6–10
Next come variables.
Students create and change values such as names, ages and scores before combining information in their programs.
This moves them from simply displaying text to actually storing and using data in Python.
Level 3: User Input — Challenges 11–15
Now the programs start talking back.
Students use input() to ask questions, collect information from the user and use that information in their programs.
They also begin converting input using int().
This is where a simple script starts feeling much more like an actual program.
Level 4: Calculations — Challenges 16–20
Students then use Python to solve problems.
They calculate totals, work out the area of a rectangle, convert minutes into seconds and even calculate a restaurant bill with a tip.
These beginner Python exercises give calculations a clear purpose rather than practising operators in isolation.
Level 5: Decisions — Challenges 21–25
Next, students make their programs think.
Well... sort of.
Using decisions, they can check whether a number is positive or negative, identify odd and even numbers, check someone's age and test whether a password is correct.
Students begin seeing how programs can produce different results depending on the information they're given.
Level 6: Loops & Game — Challenges 26–30
Finally, students practise Python for loops and range().
They print repeated messages, count from 1 to 10, create a countdown and generate a times table.
Then Challenge 30 brings several skills together in a simple Python number-guessing game.
That's quite a journey from print("Hello, world!").
How Teachers Can Use These Python Challenges in the Classroom
You don't actually have to use them for 30 consecutive days.
Use them however your class needs them.
They can work as Python classroom activities, lesson starters, independent coding practice, homework, extension tasks, revision activities or challenges for early finishers.
They're particularly suited to KS3 Computing, introductory Computer Science lessons and students beginning Python programming.
For mixed-ability classes, students can also progress through the challenges at different speeds.
One student might be working with variables.
Another might already be building the game.
Both still have somewhere to go next.

Python Practice Without Another Huge Project
Not every programming lesson needs another big project.
Sometimes students just need to practise.
A lot.
These Python exercises for beginners give students repeated opportunities to write code, make mistakes, debug problems and try again.
And because each challenge is small, progress is visible.
Output becomes variables.
Variables become input.
Input becomes calculations.
Calculations become decisions.
Decisions become loops.
And eventually, those individual skills start becoming programs.
Free 30 Days of Python Challenge Poster
I've put all 30 Python challenges for beginners onto one visual classroom poster.
The free 30 Days of Python Challenge Poster takes students through output, variables, user input, calculations, decisions and loops before finishing with a simple number-guessing game.
Teachers can display it in the Computer Science classroom, use individual challenges during lessons or let students work through the activities independently.
Download the 30 Days of Python Challenge Poster FREE on TES
Thirty challenges.
Six levels.
And one very simple goal:
Get students writing code.
Related classroom packs:
