Python Programming Language | Loops in Python | For Loop | While Loop | Lecture 5

Publicado em: 30 Março 2017
no canal de: Edupedia World by Exambyte
165
1

Python Programming Language: Computer Applications
Python Programming Language | Loops in Python | For Loop | While Loop | Lecture 5

Review:
In the previous video, we covered
• IF Statement
• ELSE Statement
• Nested IF Statement
• ELIF (ELSE IF) Statement

In this video, we shall see “LOOPS”. We shall first see the “FOR Loop” and then see “WHILE Loop”
• Loops are important parts of Programming
• It allows us to repeat a block of code multiple times, without having to retype it

FOR LOOP:
Illustration of FOR Loop
We shall use Spyder like the last video
Example to print a set of given numbers

Example to use Range Command in the FOR Loop:

Example to print only the even numbers from a given set of numbers:
Use of IF ELSE Statement with in a FOR Loop
Use of Continue Statement along with a FOR Loop
Use of Break Statement along with a FOR Loop

While Loop:
• Its working is very similar to FOR Loop
Illustration of While Loop:
Use of IF ELSE Statement with in a While Loop
Use of Continue Statement along with a While Loop
Use of Break Statement along with a While Loop

Video by Edupedia World (www.edupediaworld.com), Free Online Education;

Download our App : https://goo.gl/1b6LBg

Click here https://goo.gl/HjNegN to watch more videos on Python Programming Language- Complete Tutorial;

All Rights Reserved.


Nesta página do site você pode assistir ao vídeo on-line Python Programming Language | Loops in Python | For Loop | While Loop | Lecture 5 duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Edupedia World by Exambyte 30 Março 2017, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 165 vezes e gostou 1 espectadores. Boa visualização!