filmov
tv
Python 3.9:If elif else

Показать описание
Welcome to another Python 3.9 tutorial video, this video is about the if elif else statement. Elif is short for else if.
We already have seen the if and if-else statement. The if elif else pairing adds another layer of logic to the if-else statement. It allows us to tie multiple if statements together.
Unlike using multiple if's, whenever a condition is true in if elif else the rest of the elif's are ignored even if the given condition for them is true.
We already have seen the if and if-else statement. The if elif else pairing adds another layer of logic to the if-else statement. It allows us to tie multiple if statements together.
Unlike using multiple if's, whenever a condition is true in if elif else the rest of the elif's are ignored even if the given condition for them is true.