Conditions: Making Decisions in Code
KAUST Academy
0:00 / 0:00
Conditions: Making Decisions in Code
38 просмотров · 6 ч назад
KAUST Academy
81 подписчик
38 просмотров · 6 ч назад
Until now every program ran every line, every time. Real programs choose. We read user input with input(), branch with if, elif and else, and see why indentation is part of Python's syntax. We combine conditions with and, or and not, cover short-circuiting and "truthiness", and finish with a clean pattern for validating input before doing the real work.
Part of the KAUST Academy AI Specialization.