Locked lesson.
About this lesson
Formatting in Python is important! Let's look at lines and indentation, and single line If statements.
Exercise files
Download this lesson’s related exercise files.
Python Formatting.docx59 KB Python Formatting - Solution.docx
59 KB
Quick reference
Python Formatting
Python handles formatting simply.
When to use
Formatting is important in python.
Instructions
Remember to tab your code in conditional statements.
Remember that python ignores spaces.
Place multiple items on the same line by separating them with semi-colons ;
And place multiple lines items together using the back slash \
Hints & tips
- Python formatting is pretty straight forward!
- Remember tab spacing, semi-colons, and back slashes \
Lesson notes are only available for subscribers.