How do you do Whitespace means right space


def spam():
eggs = 12
return eggs

print spam()


Go back one lesson:

In Python, whitespace is used to structure code. Whitespace is important, so you have to be careful with how you use it.

The code in the editor resulted in the following error message:

File "python", line 2
eggs = 12
IndentationError: expected an indented block

This is not a lesson checker error, but an interpreter error (which we read in the console in red; and, which errors are always fatal).

The cure for this error is described in the lesson 6 instructions:

Properly indent the code with four spaces before eggs on line 2
and another four before return on line 3.

You should indent your code with four spaces.