RUVIDEO
Поделитесь видео 🙏

Loops and Iteration | learn python full смотреть онлайн

like, that would be an infinite loop. You're going to run out of water, you're going to run out of shampoo, you're going to run out of something, right? But the technical problem is, is that n is not changing. n is not changing. And so what happens is there's no way for this true to become false. There's no way, it just stays true, and so that's an infinite loop. And that will literally run until your computer's battery runs out or you unplug it or you hit some escape or whatever. If your computer is spinning in a beach ball, it's got some little weird little thing, it's probably in a loop that is either infinite or nearly infinite. So this is a bad thing to do because it locks up computers. If you write code to do this and you run it on your computer, you will probably get some kind of a spinning beach ball or whatever that your computer, whichever your operating system does, because it's not good to put your computer in an infinite loop.

And so we need somehow to have an iteration variable that changes and in this previous one, I subtracted 1 from n. And so this variable eventually went from true, true, true, true, true, false, and so it became false. This question became false, which gets us out of the loop. This variable that we use to control it is what we call an iteration variable.
Because it controls how long the iterations run and when the iterations stop. So this is an infinite loop because we're not affecting the iteration variable. The iteration variable still is n. And then we have another sort of version of this loop that shows that these loops are what are called zero-trip loop. And that is when this one comes in, this one starts out false. And so it skips it. And so this basically functions like an if statement. So it's okay, it comes in, it's false, skip. Never runs either of these statements.

Now, we have some statements that we can use to get out of a loop. One of them is the break statement. And it's an executable statement. When it runs, it basically breaks out of the loop, moves to the line beyond the end of the loop.

So wherever we're at, when this code runs, it jumps out of the loop.

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Loops and Iteration | learn python full» бесплатно и без регистрации, вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.