Get a Python program
Find the syntax error
Pyntax shows you a tiny Python program. With exactly 1 syntax error. Spot it. Fix it. Move on.
- no signup
- no cookies
- no tracking
- no AI
# find the syntax error
def greet(name)
print("hello,", name)
greet("world")
Tiny things can break everything
Every challenge targets one of these. Train them daily and your eyes stop bouncing. They land.
-
:
colonsafter def, if, else, elif, for, while -
,
commasbetween args, list / dict / tuple items -
( )
parenthesescalls, tuples, grouping -
[ ]
square bracketslists, indexing, slices -
{ }
curly bracketsdicts, sets, f-string fields -
⇥
indentationblocks, 4-space rule, mixed tabs -
= ? ==
assignment vs equalitythe classic one-character bug -
" "
quotes & stringsunterminated, mismatched, f-strings -
elsif
misspelled keywordselsif vs elif, dev vs def, retrun vs return
Edit Check Repeat
A real editable Python program with a problem. Fix it. Run Check to verify. Can't spot the problem? Pyntax will help you.
# missing colon
for i in range(5)
print(i * 2)
print("done")
# = ? ==
score = 100
if score = 100:
print("win")
# bracket mismatch
users = ["ada", "lin", "max")
count = len(users)
print(count)
# missing comma
config = {
"host": "localhost" "port": 8080,
}
# indentation
def double(x):
return x * 2
print(double(5))
# misspelled keyword
def is_underage(age):
retrun age < 18
print(is_underage(17))
Learn it Use it Own it
-
Open the page
No signup, no account, no cookies. The programs live right here in the browser. Open the page and you're training.
-
Spot the error
A short Python program, 4-8 lines, exactly 1 syntax error. Colons, commas, brackets, indentation, quotes, keywords.
-
Fix it & move on
Edit in place, hit Check, next program. Nothing is stored, nothing is sent anywhere. Just you and the Python syntax.