#8 - Loops in Python (while, for)

Опубликовано: 25 Сентябрь 2020
на канале: Tech Vitals
197
4

Learn to use while loop and for loop in Python. Loop is a block of code that repeats a sequence of instructions until a specific condition is true. In Python, we have two kinds of loops; while loop and for loop. In other programming languages, there is also a do while loop, but we don't use do while loop in Python.
We can also use 'break' and 'continue' inside loops. break will simply exit the loop if certain condition is met. continue will bypass the sequence of instructions only for that specific condition i.e. it won't exit the entire loop like the break does.
In summary, loops save a lot of time and effort when we have to run a specific task multiple times. Therefore, loops are extremely important parts of any programming language.

Facebook:   / techvitals  


На этой странице сайта вы можете посмотреть видео онлайн #8 - Loops in Python (while, for) длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Tech Vitals 25 Сентябрь 2020, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 197 раз и оно понравилось 4 зрителям. Приятного просмотра!