How to use Elif and While in Python - #First steps in Python 2

Subscribers:
2,490
Published on ● Video Link: https://www.youtube.com/watch?v=ecXuV_9u2NE



Duration: 16:57
18 views
4


Today I learned more about Python, and I made simple programs that use Elif and also the While command.
Basically, Elif is put between the if and else, if the command runs and it goes to If, so it will run the if command, even if the Elif could run, but if the necessary things of elif is met and the command runs on else, so it will run elif (if that makes sense).

A exemple would be:
IF subscribe=1
print("Thank you!")

elif like=1
print("Thanks for liking the video")

else
print("You can subscribe or like the video!")

now the While command is much simpler.
Basically, the While command is a loop that runs until it requirements are complete.

so if I want to have a program that counts 0 to 10 for me, I can use an while command:

number=0
while number=10:
print(number)
number=number+1


The course in using (it's in Portuguese): https://on.fiap.com.br/local/salavirtual/conteudo-digital.php

If you have any question or suggestion on other topics, feel free to comment down below or ask me in Facebook or Instagram!

Visit my Facebook Page in: http://fb.com/teteusbionicoficial
Visit my Instagram: https://www.instagram.com/teteusbionic/
Visit my Website: http://www.teteusbionic.com.br

The course: https://on.fiap.com.br/local/salavirtual/conteudo-digital.php




Other Videos By Teteus Bionic (Teteus Bionic)


2021-05-21Como Definir e Modular Código em Python - #Primeiros passos com Python parte 8
2021-05-20Como Procurar e Modificar Listas em Python - #Primeiros passos com Python parte 7
2021-05-20How to Search and Modify Lists in Python - #First steps in Python part 7
2021-05-18Como ler LISTS com Python - #Primeiros passos com Python - 6
2021-05-18How to use and read LISTS in Python - #First steps in Python 6
2021-05-17Como usar LISTAS com Python - #Primeiros passos com Python parte - 5
2021-05-17How to use Lists in Python - #First steps in Python 5
2021-05-13How to use In Range in Python - #First steps in Python 3
2021-05-13Como usar In Range com Python - #Primeiros passos com Python parte - 4
2021-05-12Como usar Elif e While com Python - #Primeiros passos com Python parte - 3
2021-05-12How to use Elif and While in Python - #First steps in Python 2
2021-05-03Kinetic energy is the most common energy
2021-05-03A energia Cinética é a Energia Mais Comum
2021-04-30Como usar Variáveis com Python - #Primeiros passos com Python
2021-04-30How to use Variables in Python - #First steps in Python 2
2021-04-29Como o Experimento da Fenda Dupla Mudou Física para Sempre
2021-04-29How The Double Slit Experiment Changed Physics Forever
2021-04-26Iniciando com Python - #Iniciando com Python parte - 1
2021-04-26First Steps in Python - #First Steps in Python 1
2021-02-17Por que a NASA não é o futuro dos astronautas (e como eles ajudarão) - Aposta do Pai, Dia 20
2021-02-17Por qué NASA no es el futuro de los astronautas (y cómo ayudarán) - Día 20 de la apuesta del padre



Tags:
Programação de Jogos
Curso de Programação de Jogos
Palestra Programação de Jogos
Oficina Programação de Jogos
Scratch
Fazer Jogo
Criar um Jogo
Como fazer um jogo
Fazer um jogo sozinho