Much of the Python code you’ll write is unconditional. That is, the code does not make any choices. Every line of code is executed in the order that it’s written or in the order that functions are called, with possible repetitions inside loops.
This video is an introduction to using conditional logic to write programs that perform different actions based on different conditions.
This is a portion of the complete course, which you can find here:
https://realpython.com/courses/basics...
The rest of the course covers:
Handling errors with try and except
How to apply conditional logic to create simulations
Recovering from errors
Creating nested if statements
На этой странице сайта вы можете посмотреть видео онлайн Introduction to Conditional Logic in Python: Python Basics длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Real Python 15 Сентябрь 2022, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 1,786 раз и оно понравилось 38 зрителям. Приятного просмотра!