While Loop in Python | [Part 26] Python Tutorial for Beginners in Hindi

preview_player
Показать описание
#python #tutorial #hindi #programming

Python tutorial for Beginners in Hindi

In this video you will learn about While loop in Python.

In computer programming, loops are used to repeat a block of code.

For example, if we want to show a message 100 times, then we can use a loop. It's just a simple example; you can achieve much more with loops.

There are 2 types of loops in Python:

1. for loop
2. while loop

For loop: A for loop is used for iterating over a sequence (that is either a list, a tuple, a dictionary, a set, or a string).

This is less like the for keyword in other programming languages, and works more like an iterator method as found in other object-orientated programming languages.

With the for loop we can execute a set of statements, once for each item in a list, tuple, set etc.

while loop: With the while loop we can execute a set of statements as long as a condition is true.

Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming. Python’s elegant syntax and dynamic typing, together with its interpreted nature, make it an ideal language for scripting and rapid application development in many areas on most platforms.

Why to Learn Python?
Python is consistently rated as one of the world's most popular programming languages. Python is fairly easy to learn, so if you are starting to learn any programming language then Python could be your great choice. Today various Schools, Colleges and Universities are teaching Python as their primary programming language. There are many other good reasons which makes Python as the top choice of any programmer:

1. Python is Open Source which means its available free of cost.
2. Python is simple and so easy to learn
3. Python is versatile and can be used to create many different things.
4. Python has powerful development libraries include AI, ML etc.
5. Python is much in demand and ensures high salary

Other Important tutorial
------------------------------

Рекомендации по теме
Комментарии
Автор

Sir When You will Complete Js Course...

RohitSingh