# #20 Python Tutorial for Beginners | While Loop in Python

///#20 Python Tutorial for Beginners | While Loop in Python

## #20 Python Tutorial for Beginners | While Loop in Python

Python Tutorial to learn Python programming with examples
Complete Python Tutorial for Beginners Playlist :
Python Tutorial in Hindi :

Github :-
In this video we will see:
– Loops
– Why we need loop
– Types of loop
– While loop
– Syntax of while loop
– Example of while loop
– Nested while loop

Editing Monitors :

Check out our website:

Telusko :
Navin Reddy :

Subscribe to our other channel:
Navin Reddy :
Telusko Hindi :

Donation:
PayPal Id : navinreddy20
Patreon : navinreddy20

source

By |2020-08-05T08:45:06+00:00August 5th, 2020|Python Video Tutorials|28 Comments

1. insta python August 5, 2020 at 8:45 am - Reply

Superb session

2. AGARA MUTHALI August 5, 2020 at 8:45 am - Reply

For (i =1;i<1000;i++)
Print ("hello");

What is the error this code

3. Ankur Gupta August 5, 2020 at 8:45 am - Reply

1
i=1
if (i%3==0) or (i%5==0):
else:
print(I)I=I+1

2
i=1
j=1
if I>6:
else:
if j>6:
else:
print(#)
j=j+1
i=I+1

4. MILAN BARIYA August 5, 2020 at 8:45 am - Reply

🤓 Quiz Answer ( 3 ) 🤓
# Write a code to print bellow pattern
# # # # #
# # # # #
# # # # #
# # # # #

i = 1

while i <= 5:
print("# "*5)
i += 1

5. MILAN BARIYA August 5, 2020 at 8:45 am - Reply

🤓 Quiz Answer ( 2 ) 🤓
# Write a code to print bellow pattern
# # # # #
# # # # #
# # # # #
# # # # #

i = 1

while i <= 4:
print("#", end=" ")
j = 1
while j <= 5:
print("#", end=" ")
j += 1

6. MILAN BARIYA August 5, 2020 at 8:45 am - Reply

🤓 Quiz Answer ( 1 ) 🤓
# Write a code to print all values from 1 to 100.
# skip the numbers which are divisible by 3 or 5

i = 1

while i <= 100:
if i % 3 != 0 and i % 5 != 0:
print(i)
i += 1

7. sai vamshi August 5, 2020 at 8:45 am - Reply

loops are somewhat difficult to understand sir

When everyone is trying to make things mug up, Naveen u stood out for explanation and your explanations are easy and best.
Exceptionally best you are Naveen.

9. YOGESHWARAN G August 5, 2020 at 8:45 am - Reply

Problem_1
i=1

while(i<=100):

if (not(i%3==0 or i%5 ==0)):

print(i)

i = i+1

10. Ritesh Jaiswal August 5, 2020 at 8:45 am - Reply

Absolutely an inspirational lessons

11. Ayush Jaiswal August 5, 2020 at 8:45 am - Reply

sir we have while do in java but we don't have in python?

12. Sureshkumar V August 5, 2020 at 8:45 am - Reply

i did not get it

13. chaudhary shoeb August 5, 2020 at 8:45 am - Reply

You are the best Navin Brother,
You teaches each and every basic point by mentioning the error by yourself & questioning to yourself
every one getting …? mark in mind after that you gives the solution how its happens
by this i am getting the concept clear
and that is what your teaching is the best.
Good to have a teacher and programmer like you.
Good bless you Navin Brother.

14. my computer August 5, 2020 at 8:45 am - Reply

in the first one method i placed -1 instead of + 1 it writes my name unlimited time

15. GOVEKAR PARTH August 5, 2020 at 8:45 am - Reply

i = 1

while(i<=4):

j = 1

while(j<=5):

print('#', end="")

j = j+1

print()

i = i+1

16. Utkarsh Rajput August 5, 2020 at 8:45 am - Reply

I really enjoyed his way of teaching and the way he explains the concept is just amazing 👍👍👍👍

17. Jhinal Rajput August 5, 2020 at 8:45 am - Reply

Sir, I want to know how you debug every single line of code.. I tried but didn't get what you do 🙏

18. Amit kumar August 5, 2020 at 8:45 am - Reply

i = 1
while i<=4:
print("****")
i = i + 1

19. Noor Khan August 5, 2020 at 8:45 am - Reply

i=1

while i<=4:

print("# # # # #")

i = i+1

20. Noor Khan August 5, 2020 at 8:45 am - Reply

i=1

while i<=100:

if i%3!=0 and (i%5!=0):

print (i)

i=i+1

21. Noor Khan August 5, 2020 at 8:45 am - Reply

i = 1

while i<=5:

j = 1

while j<=4:

print("#", end=" ")

j=j+1

print("#")

i=i+1

print()

22. ujwal patil August 5, 2020 at 8:45 am - Reply

Why there is i = i +1 below

23. Mangesh Kapgate August 5, 2020 at 8:45 am - Reply

Code for Second One:
x = 1

while x < 5:

y = 1

while y < 5:

print("# ", end=" ")

y = y + 1

print("")

x = x + 1

24. Ayush Codes August 5, 2020 at 8:45 am - Reply

x=1

while x<=4:

j=1

while j<=5:

print("#", end="")

j=j+1

x=x+1

print()
2nd Solution

25. Ayush Codes August 5, 2020 at 8:45 am - Reply

x=1

while x<=100:

if(x%3==0) and (x%5==0):

x=x+1

else:

print(x)

x=x+1

26. prateek uppal August 5, 2020 at 8:45 am - Reply

i=1

j=1

while(i<=5):

print('Mani', end=" ")

while(j<=5):

print('Rocks '*4, end=" ")

j=j+1

break

i=i+1

print("")
sir, by using the above code we can also get the same output.

27. sankella pavan August 5, 2020 at 8:45 am - Reply

you are the best teacher i have seen in my life.

28. Technic Prince August 5, 2020 at 8:45 am - Reply

a=1

while a<=4:

print("#####")

a=a+1