Getting started
Basic concepts: taking our first steps
Using an IDE
Objects and classes
Loops, ranges, and iterators
Working with files
Exception handling
Python data types
Course project: building a TODO application
And now what?

About the example code

Time for a little intermission. During this course, you will get to see a lot of example code. This example code can take on several forms. The most simple form is in-line code, like this: you can print text with print('Hello').

What you’ll see more often, and have seen in the previous topics, is code where I’m showing you what to do in the Python REPL:

>>> 1 + 1
>>> print('Hello')

The REPL’s prompt looks like this: >>>. I copy this prompt into the examples to make it clear that this code should be entered in the REPL.

Other times, I’ll show you Python code outside of a REPL too, e.g.:

# A comment

The obvious difference here is that the REPL prompt is missing from these examples. It makes it easier for you to copy and paste the code into your editor or REPL.

The most fun examples will use a pet project of mine, These examples contain code that you can both modify and run. Some examples even include multiple files or little assignments. Below you can find an example of a crumb. Feel free to play around with it by editing and running the example:

About syntax highlighting

Example code in this course will almost always be syntax highlighted, meaning that the code is colored to make it easier to read. The website does this syntax highlighting, so it’s important to realize that your code might look different. Especially in the first sections of this course, your code won’t have syntax highlighting at all. Once you start using an IDE (you’ll learn all about it in this course) you too will have syntax highlighting on your computer.