Code Blocks & Indentations In Python (E2 P5) - Elements of Python

preview_player
Показать описание
So in our previous video, we spoke about Multiline statements. We covered the 3 categories of Multiline Statements and the character combinations that are represented in each category. In addition we spoke in detail about the 4 Points Of Multiline Statements and their basic rules of operation. If you have not seen that video or would like to revisit that video, I have posted links in the description below or for your convenience you can click on the link in the top right of the screen for that video. Also, if you want to watch a specific section of this video, I have included timecodes in the description below. That way you can watch exactly what you need to know.

In today's class we’re going to talk about Code blocks and Indentation levels in python. We'll discuss how they're set up, the simple ways to identify them, and the rules related to their proper function. We’ll also dive into the well known error messages that you may come across while working with python code blocks, whether it’s syntax, indentation, logic, or tab errors. And finally we will conclude with coding examples to bring your understanding all together. Let's get started.

----Timecodes----
00:00 - Intro
01:17 - Overview of Today's Lesson
01:46 - [Lecture] What is a Code Block?
02:31 - [Lecture] Indentation Rules in Python
04:46 - [Lecture] Indentation, Code Blocks and the Colon (:)
05:29 - [Lecture] Common Errors When Formatting Code Blocks
06:43 - [Code Examples] Same Indentation Level Code Blocks
08:15 - [Code Examples] Different Indentation level Code Blocks
09:09 - [Code Examples] Complex Multiple Indentation level Code Blocks
11:18 - [Code Examples] IndentationError: expected an indented block
12:41 - [Code Examples] IndentationError: unindent does not match any outer indentation level
13:35 - [Code Examples] IndentationError: unexpected indent
14:32 - [Code Examples] SyntaxError: invalid syntax
15:19 - [Code Examples] Code Block / Indentation Logic Errors
17:56 - [Code Examples] TabError: inconsistent use of tabs and spaces in indentation
20:15 - Outro

Previous Videos in Series:

The World of Multiline Statements (E2 P4) - Elements of Python

Sep & Newline Print Option (E2 P3) - Elements of Python

Statements: Print & the End Parameter (E2 P2) - Elements of Python

Comments (E2 P1) - Elements of Python
Рекомендации по теме
join shbcf.ru