This Python programming video tutorial introduces you to using while loops in Python. We use the while loop to run a section of code until a certain condition is met, true or false. This is lesson 14 of Python for beginners in Hindi Urdu course.
We have understood the following lines of code in this tutorial:
While loop
count_1 = 1
while count_1 (less than symbol)= 10:
print('Your number is : ' + str(count_1))
count_1 = count_1 + 1
count_2 = 10
while count_2 = 1:
print('Your number is : ' + str(count_2))
count_2 (greater than symbol)= count_2 - 1
print(count_2)
Watch also:
1. Python basics programming tutorial for beginners | Python print hello world code in Hindi Urdu - part 1 at • Python basics programming tutorial for beg... .
2. Print function in Python to display multiple lines | Python programming tutorial in Hindi Urdu at • Print function in Python to display multip...
3. Introduction to Variables in Python | Python programming tutorial in Hindi Urdu at • Introduction to Variables in Python | Pyth...
4. Concatenation of strings and variables in PYTHON | Concatenating and type function in Python at • Concatenation of strings and variables in ...
5. Input function in Python with string function and concatenation | Python for beginners in Hindi Urdu at • Input function in Python with string funct...
6. Input function in Python with str and int functions for calculations | Python in Hindi Urdu at • Input function in Python with str and int ...
7. Python tutorial in Hindi Urdu | Convert cm to inches & Kgs to pounds in Python programming lesson 7 at • Python tutorial in Hindi Urdu | Convert cm...
8. Python string slicing and string indexes | Python tutorial for beginners in Hindi Urdu lesson 8 at • Python string slicing and string indexes |...
9. Formatted string in Python F-Strings in Python for string formatting for beginners in Hindi Urdu at • Formatted string in Python F-Strings in Py...
12. Arithmetic operators precedence and BEDMAS rule in Python | Python for beginners in Hindi Urdu 12 at • Arithmetic operators precedence and BEDMAS...
13. Implicit and explicit conversion concepts in Python | Python for beginners in Hindi Urdu lesson 13 at • Implicit and explicit conversion concepts ...
Full Python course in Hindi Urdu playlist at • Python programming course in Hindi Urdu .