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

Simple Python Tutorial to introduce range() with it's parameters #loop #for #range #python

Please like the video if it helps you :)

Simple python example and short video to illustrate the use range() to construct a "for" loop to repeat a number of time. It explains the 3 parameters that range() has. We can have a choice of passing in 1 or 2 or 3 input values to range. It further explains how the 3 values affect how the range() functions. The example are focused on helping a beginner understand how to use range() in a "for" loop.

3 parameters of the range()
range( [start], stop, [step] )
the square bracket indicates these parameter are optional. if there are not specified, they take on default value.
[start] default to a value 0.
[step] deafult to a value +1.
so range(5) is effectively equals to range(0,5,+1)
range(1,5) is effectively equals to range(1,5,+1)

After understanding how range() works, you can used it in different situations depending on the need. It is most commnly used to just repeat statement(s) a certain number of times and display a counter as it repeats. On certain occasion, you need odd numbers or even numbers where you can then configure the Change/step.

You can use the link below to see some related videos
(Apart from watching the video, you can also show more info to read on the explanation.)
== More on how "for" loop works ==
https://youtu.be/AoGuZqTQerE

== how "while" loop works works ==
https://youtu.be/Eiu4vkIkAdk

Hope these inputs are helpful for you.

0:00 - range() and it's 3 parameters
0:59 - range() with 1 input value passed in (most common and simplest)
02:09 - range() with 2 input value passed in
02:47 - range() with 3 input value passed in
03:12 - range() with 3 input value passed in with negative step value

Keywords:
#python
#for
#range()
#parameters
#start
#stop
#step
#change
#repeats
#loop
#loops
#counter
#counter-controlled
#tutorial
#short
#simple
#easy

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Simple Python Tutorial to introduce range() with it's parameters #loop #for #range #python», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

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

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

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