60 small exercises in 8 sets, in the same order as the free lessons: print, variables, if/else, loops, lists, dictionaries, functions and string methods. Write your code, press Check, and you know straight away if it is right.
Do the first 30 plus the 5 free lessons and you earn a free Python Basics certificate (with a free account, no card).
Free, no account needed. Hint after one try, solution after three. Progress is kept in this browser.
Make Python say things. Quotes, +, and * on text.
Store a value, do maths on it, print the answer.
Make a decision: pass or fail, even or odd, which ticket.
Repeat with for and while: count, add up, print a table.
Keep many values together and walk through them.
Look things up by name: a menu, a scorecard, a word count.
Write a small machine: give it inputs, get an answer back with return.
upper, strip, split, slicing and f-strings.
Finished all 8 sets? Try the interview problems next.