Exercises
Do them in order: each one uses what you learned before. Press Check my answer when you think you've got it. Your code and progress are saved in this browser.
Python
0/11 done.A friendly first language. Great for games, maths and automating boring stuff.
- 01Hello, World!Make the computer say something. Your very first program.
- 02VariablesGive names to values so you can reuse them.
- 03The computer is a calculatorLet Python do the maths for you.
- 04FunctionsPackage code into reusable little machines.
- 05Making decisionsif, elif, else, so your program can choose what to do.
- 06LoopsRepeat things without copy-pasting.
- 07ListsKeep many values in one place.
- 08Playing with textStrings have superpowers.
- 09DictionariesLook things up by name instead of by position.
- 10FizzBuzzA classic puzzle that real programmers get asked in job interviews.
- 11Game: guess the numberBuild a real interactive game using everything you've learned.free play
JavaScript
0/5 done.The language of the web. Every website you visit runs it.
- 01Hello, JavaScript!Your first line of JavaScript, the language of the web.
- 02Variables and template stringsconst, let, and putting values inside text.
- 03FunctionsTwo ways to write functions in JavaScript.
- 04Arrays and loopsPython's lists are called arrays in JavaScript.
- 05Game: rock, paper, scissorsPlay against the computer in the terminal.free play