diff --git a/guide/english/python/code-blocks-and-indentation/index.md b/guide/english/python/code-blocks-and-indentation/index.md index 601a79432d..138512d463 100644 --- a/guide/english/python/code-blocks-and-indentation/index.md +++ b/guide/english/python/code-blocks-and-indentation/index.md @@ -39,7 +39,9 @@ else: print('adult fare') ``` -After Python gets age from the user, it enters the if/elif-statement and checks each condition one after the other in the order they are given. So first it checks if age is less than 2, and if so, it indicates that the flying is free and jumps out of the elif-condition. If age is not less than 2, then it checks the next elif-condition to see if age is between 2 and 13. If so, it prints the appropriate message and jumps out of the if/elif-statement. If neither the if-condition nor the elif-condition is True, then it executes the code in the else-block. +After Python gets age from the user, it enters the if/elif-statement and checks each condition one after the other in the order they are given. So first it checks if age is less than 2, and if so, it indicates that the flying is free and jumps out of the elif-condition. If age is not less than 2, then it checks the next elif-condition to see if age is between 2 and 13. If so, it prints the appropriate message and jumps out of the if/elif-statement. If neither the if-condition nor the elif-condition is True, then it executes the code in the else-block. + +Along the lines of how crucial indentation is, regard how the rest of the structure may be equally important. For instance, the use of a semicolon `:` after the if- or elif-conditions indicates that the conditions to be met have all been described and allow for the actions, the next line that is further indented such as the print arguments, to be understood by Python. #### Conditional expressions Python has one more logical operator that some programmers like (and some don’t!). It’s essentially a shorthand notation for if-statements that can be used directly within expressions. Consider this code: