Practice Python online
A free Python editor that runs right in your browser. Write code, press Run, and type your answers when the program asks with input(). It even draws with turtle. There's nothing to install and no account to make.
Python 3.14 · free · no sign-up · runs in your browser
Python practice problems for beginners
Each one opens in the editor above as a working program with something left for you to finish.
- problem 1
Greet me
Ask for a name and an age, then print one sentence that uses both.
- problem 2
Even or odd
Read a whole number and say whether it's even or odd, using the % operator.
- problem 3
FizzBuzz
Count to 30, saying Fizz for multiples of 3, Buzz for multiples of 5 and FizzBuzz for both.
- problem 4
Find the biggest number
Loop through a list and find its biggest number without using max().
- problem 5
Count the vowels
Count the vowels in a sentence someone types, then try counting the consonants too.
- problem 6
Draw a star with turtle
Use Python's turtle to draw a 5-point star, then fill it in or give it more points.
A free online Python editor that runs in your browser
- Real Python 3.14 with the standard library (math, random, datetime and more)
- input() works: the program pauses and you type your answer in the console
- turtle graphics, drawn on the page as you watch
- Errors point to the exact line, with only the part that's about your code
- Your code is remembered in your browser, and Share gives you a link
- Built for beginners and kids, and fast enough for real practice
Python editor questions
Is this Python editor free?
Yes. It's free, with no sign-up, no ads and no tracking. Your code runs in your own browser and isn't sent anywhere unless you press Share to make a link.
Which version of Python is it?
Python 3.14, the real CPython interpreter compiled to WebAssembly (Pyodide), with the standard library. Extra packages like numpy and pandas aren't installed.
Does input() work?
Yes. When your program calls input(), it pauses and a line to type on appears in the console. Press Enter and the program carries on, just like in a terminal.
Can I use turtle graphics online?
Yes. import turtle works the way it does in IDLE: forward, left, circle, colors, fills, write and more, drawn on the page as you watch. Keyboard and mouse events aren't supported yet.
Does it work on a Chromebook, iPad or phone?
Yes, in any up-to-date browser: Chrome, Safari, Edge or Firefox, including school Chromebooks. The first run downloads about 6 MB, then your browser keeps it, so later visits start fast.
Is my code saved?
Your code is remembered in your browser, so it's there when you come back on the same device. To keep a copy or send it to someone, press Share for a link, or Copy.
Are there any limits?
A program can run for 10 seconds (time spent waiting for you to type doesn't count), and programs can be up to 20,000 characters. That's plenty for practice problems, school assignments and small projects.
Want a coach while you practice?
HopeCoders teaches Python 1-on-1 for all ages, from first programs to school projects. Every coach is background checked, and sessions happen in person across Greater Los Angeles, from Pasadena, Burbank and Beverly Hills to the South Bay, Long Beach and north Orange County, or online over Zoom.