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” statement | Introduction to conditional execution онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Computer Science Camp 09 Июль 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 29 раз и оно понравилось 1 людям.