Lesson 05: Whitespace - nolenfelten/Codecademy-Python-Notes GitHub Wiki

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

Instructions:

The code on the right is badly formatted. Hit "Save & Submit Code" to see what happens.

You should see an error message. We'll fix it in the next exercise!

def spam():
eggs = 12
return eggs
		
print spam()