The Python “if-else” block | Conditional execution under one condition and its opposite

Опубликовано: 13 Июль 2021
на канале: Computer Science Camp
38
3

LINKS TO FULL CONTENT
Full lesson: https://computersciencecamp.com/cours...
Full course: https://computersciencecamp.com/cours...

FULL LESSON DESCRIPTION
So far, all of our Python programs have executed statements sequentially. In a program that has 3 lines of code, we expect line 1 to run first, then line 2, then line 3. While this execution model has already allowed us to introduce some level of interaction with the user, the real power of a programming language comes when you can alter the sequential control flow of your program by deciding what lines of code to execute, not to execute, or to execute multiple times based on certain conditions. In this lesson we introduce conditional execution as the most basic form of non-sequential control flow in Python.

FULL LESSON CONTENT
Part 1. The ‘if’ block
Part 2. The ‘if-else’ block
Part 3. The ‘if-elif-else’ block


Смотрите видео The Python “if-else” block | Conditional execution under one condition and its opposite онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Computer Science Camp 13 Июль 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 38 раз и оно понравилось 3 людям.