Up next

Autoplay

#20 Python Tutorial for Beginners | While Loop in Python

0 Views • 10/30/24
Share
Embed
121gamers
121gamers
14 Subscribers
14

Check out our courses:

Spring Boot and Microservices Live Course : https://go.telusko.com/SBM
Coupon: TELUSKO10 (10% Discount)

Complete Java Developer Course Batch-3: https://go.telusko.com/completebatch3
Coupon: TELUSKO10 (10% Discount)

Enterprise Java Spring Microservices: https://go.telusko.com/enterpriseJava
Coupon: TELUSKO10 (10% Discount)

Master Java Spring Development : https://go.telusko.com/masterjava
Coupon: TELUSKO20 (20% Discount)

Udemy Courses:

Spring: https://go.telusko.com/udemyteluskospring
Java:- https://go.telusko.com/udemyteluskojava
Java Spring:- https://go.telusko.com/Udemyjavaspring
Java For Programmers:- https://go.telusko.com/javaProgrammers
Python : https://go.telusko.com/udemyteluskopython
Git : https://go.telusko.com/udemyteluskogit
Docker : https://go.telusko.com/udemyteluskodocker

For More Queries WhatsApp or Call on : +919008963671

website : https://courses.telusko.com/

Instagram : https://www.instagram.com/navinreddyofficial/
Linkedin : https://in.linkedin.com/in/navinreddy20
TELUSKO Android App : https://bit.ly/TeluskoApp

In this lecture, we will learn:
- Loops in Python language
- What is the use of loops?
- While loop and its implementation
- Syntax of the while loop
- Nested while loops in python
- What is the 'end' parameter in python?


#1
- We can execute a statement multiple times, by using the loops.
- There are two types of a loop:
1. For loop
2. While loop

- In the while loop, we need a counter to count the number of times, a statement can be executed.
- We also have to put a condition in a while loop to repeat a statement until the given condition is satisfied.
- The while Loop. With the while loop, we can execute a set of statements as long as a condition is true.
- When the condition becomes false, the line immediately after the loop in the program is executed.
- The value of the counter will increase or decrease until the condition gets false.

#2
- Syntax of the while loop:-
counter variable
while (condition):
statements;
incrementation/ decrementation

- So, there must be three things in a while loop:-
1. Initialization
2. Condition
3. Increment / Decrement
- Nested while loops can also be used in Python.
- Nested while loop simply means that a loop inside another loop.

#3
- To print the values in the same, we use (end=" "). The value will not come in the new line after using it.
- Passing the whitespace to the end parameter (end=' ') indicates that the end character has to be identified by whitespace and not a new line.

Github :- https://github.com/navinreddy20/Python-

Python for Beginners :- http://bit.ly/3JOLQhl


Editing Monitors :
https://amzn.to/2RfKWgL
https://amzn.to/2Q665JW
https://amzn.to/2OUP21a.


Java:- https://bit.ly/JavaUdemyTelusko
Spring:- https://bit.ly/SpringUdemyTelusko

More Learning :

Java :- https://bit.ly/3x6rr0N
Python :- https://bit.ly/3GRc7JX
Django :- https://bit.ly/3MmoJK6

JavaScript :- https://bit.ly/3tiAlHo
Node JS :- https://bit.ly/3GT4liq

Rest Api :-https://bit.ly/3MjhZwt
Servlet :- https://bit.ly/3Q7eA7k
Spring Framework :- https://bit.ly/3xi7buh
Design Patterns in Java :- https://bit.ly/3MocXiq
Docker :- https://bit.ly/3xjWzLA

Blockchain Tutorial :- https://bit.ly/3NSbOkc
Corda Tutorial:- https://bit.ly/3thbUKa
Hyperledger Fabric :- https://bit.ly/38RZCRB

NoSQL Tutorial :- https://bit.ly/3aJpRuc
Mysql Tutorial :- https://bit.ly/3thpr4L

Data Structures using Java :- https://bit.ly/3MuJa7S
Git Tutorial :- https://bit.ly/3NXyCPu

Donation:
PayPal Id : navinreddy20
https://www.telusko.com

Show more
0 Comments sort Sort By
Facebook Comments

Up next

Autoplay