Caffeinated Coder
Book an appointment
Lesson 01 · Basics

Getting started with Python

Python is a readable, general-purpose programming language. Meet the interpreter that runs it, try a line at the >>> prompt, then step through a four-line program, hello.py, that greets you, asks your name and says hello back. Finish with the one rule that surprises every beginner: spaces at the start of a line matter.

10 min9 steps5 questionsBeginner
Fig 1 · Interactive
Loading figure…
or ← →
Put it into practice

Try it

0/2 exercises passed

Your first message

Store the text Hello, Python! in a variable called message, then print it.

Ctrl/Cmd + Enter to run. Tab indents; Escape then Tab leaves the editor.

Ready
Output
Run your code to see its output.
Checks
  • Check your code when you’re ready.

Quiz Unlocks after the last step.