Python 3 Programming Tutorial: If Elif Else

Channel:
Subscribers:
1,400,000
Published on ● Video Link: https://www.youtube.com/watch?v=42MBMSOZgD4



Category:
Tutorial
Duration: 4:19
288,994 views
3,221


Now we bring the in "elif" statement. The elif allows us to tie multiple if statements together as we might have intended to before with multiple if statements before we learned that the else will only be contingent on the if statement above it.

The "elif" statement is a hybrid of the else and the if. The way it works is:

We ask if something is the case. If it is, then the elif and the else will not run. If it is not, then the elif will run and question the if statement. If it is True, then it will run and the else will not run. If it is not true, then the else statement will run.

Sample code for this basics series: http://pythonprogramming.net/beginner-python-programming-tutorials/

Python 3 Programming tutorial Playlist: http://www.youtube.com/watch?v=oVp1vrfL_w4&feature=share&list=PLQVvvaa0QuDe8XSftW-RAxdo6OmaeL85M

In this python 3 programming tutorial video, you are shown how to use the if elif else statements.

http://seaofbtc.com
http://sentdex.com
http://hkinsley.com
https://twitter.com/sentdex

Bitcoin donations: 1GV7srgR4NJx4vrk7avCmmVQQrqmv87ty6







Tags:
Python (Software)
if elif else
if
elif
else
programming
tutorial
basics
python 3
python 3.3
python 3.4
python 2 and 3
python 2.7
2.7
3.3
3.4
Python (Programming Language)
Computer Programming (Conference Subject)