Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Exercise: Hello world

Try your environment:

  • Make sure you have access to the right version of Python.
  • Install Python if needed.
  • Check if you have a good editor with syntax highlighting.
  • Write a simple script called hello.py that prints Hello Foo Bar! replacing Foo Bar with your own name.
  • Add some comments to your code.
  • Create a variable, assign some text to it and then print out the content of the variable.