Sometimes we want to run a code depending on if one or more conditions apply (the user's age is more than 18 or the temperature is lower than a 100 degrees). That's when we use conditionals.
In python, we have If, Else and Elif. Let's learn how to use them.
Challenge: We are a bouncer and we need to keep out of the pub teenagers trying to enter.
Repl.it code:
https://repl.it/@DavidMM1707/02-Condi...
Text version:
https://letslearnabout.net/tutorial/p...
Subscribe to the channel:
/ @letslearnabout4934
Twitter:
/ davidmm1707
GitHub:
https://github.com/david1707
Learn more about:
Conditional statements: https://en.wikibooks.org/wiki/Python_...