Python 3 Programming Tutorial: If Elif Else

Publicado el: 23 enero 2014
en el canal de: sentdex
313,493
3.5k

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 3 Programming tutorial Playlist:    • Why Python 3? Python 2 vs Python 3  

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
  / sentdex  

Bitcoin donations: 1GV7srgR4NJx4vrk7avCmmVQQrqmv87ty6


En esta página del sitio puede ver el video en línea Python 3 Programming Tutorial: If Elif Else de Duración hora minuto segunda en buena calidad , que subió el usuario sentdex 23 enero 2014, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 313,493 veces y le gustó 3.5 mil a los espectadores. Disfruta viendo!