From the course: Agile Software Development: Clean Coding Practices
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Whitespace
From the course: Agile Software Development: Clean Coding Practices
Whitespace
- [Tutor] Whitespace is the term that's used to talk about the use of blank spaces to make our code more readable. Vertical whitespace refers to empty space between chunks of code, we use vertical whitespace to visually signify that certain chunks of code are related or belong together. This purpose is similar to the use of paragraphs to break up long chunks of prose. Horizontal whitespace is used to make your code easier to read when reading from left to right. Indentation is a special form of horizontal whitespace, it only appears at the start of the line. Other kinds of horizontal whitespace appear within the line. It's best to place some whitespace within a line to create space around boolean operators and after commas. These spaces are similar to the space that you put after a period, when you're writing a sentence at a spoken language like English. Let's take a peek at some Python code and work through adding vertical and…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.