For Loops in Python | Python Tutorial - Day #17

preview_player
Показать описание
Python is one of the most demanded programming languages in the job market. Surprisingly, it is equally easy to learn and master Python. This python tutorial for absolute beginners in Hindi series will focus on teaching you python concepts from the ground up.

python, C, C++, Java, JavaScript and Other Cheetsheets [++]:

►Learn in One Video[++]:

►Complete course [playlist]:

Follow Me On Social Media
Comment "#HarryBhai" if you read this 😉😉
Рекомендации по теме
Комментарии
Автор

The loop starts at 1 and increments by 3 in each iteration until it reaches a value that is less than 12. The values printed are 1, 4, 7, and 10.

syedaaiman
Автор

1 start, 12 end, 3 step
1
1+3 = 4
4+3 = 7
7+3 = 10
or fir 3 plus hota hai to 13 ho jata hai lekin range me 11 tak hi print hoga isliye 10 tak hi aayega.

hetalchaudhary
Автор

Step is used for increment or decrement in loops.
For ex. for k in range(1, 12, 3):
print(k)
It increases the value by three as 1, 4, 7, 10

pulkitpareek
Автор

11:44
Range have 3 parameters
(Strat, stop, step)
Step is basically an difference between the first number and last number it may be varied as per the user .

junaid
Автор

Not first, but I am regular watched your video

unolive
Автор

Hey harry! I am truly grateful for your efforts! I will surely try to contribute to your work in someway! I regularly watch your python and javascript videos, i am being taught by you and i enjoy watching your videos. Thanks you sir!

adnanbayadwala
Автор

The third argument in the range() function specifies the number of skips the for loop has to encounter whilst its process. Like if the range(1, 10, 3) is run, the output will be all the number starting from 1, and with a skip of 3, i.e 1, 1+3, 1+3+3 etc.

vertechua
Автор

Day 17 consistency ✌️
Btw : c/c++/java se Anne walo logo k liye (easy Language) thodi mushkil hai 😂 q ki hume curly braces aur parentheses aur variable type explicitly declare karne ki addat hai 😂😂

oo-tes
Автор

In every video of This course has learned me at least one new thing about python !!! Thanks ❤️ Harry bhai

CodingWithJas
Автор

The way you teach is great...I always had a smile on my face..Thank you for your complete and excellent teaching.

TIYARA.M
Автор

In Python, the range() function is commonly used in for loops to generate a sequence of numbers that are then iterated over. The range() function can take up to three arguments: start, stop, and step. The step argument determines the difference between consecutive numbers in the generated sequence.


# start :stop:step
for i in range (5, 100, 5):
print(i, end = " ")

pxgnryx
Автор

Day 4 of #100DaysOfCode. Today in this video 17, I learned about loops in Python, specifically for loops, which can iterate over iterable objects like strings, lists, tuples, sets, and dictionaries. I also learned about the range() function for controlling loop iteration based on a specific range of numbers, including how to define start, end, and step values.
Thank You Harry Bhaiya.

debasishbesra
Автор

In the last part of the video, amongst the three numbers, the last number got added to the first number and gave the output. The middle number represented the upper limit till which the output would be calculated. If the addition exceeds the middle number, the program terminates.

arnavtumbde
Автор

thank you bhaiya mene aapki 129 videos wali python playlist dekhi n really usse mujhe bhut help mili n thank you for all your efforts.. thank you big bro..🙏

vineetkharkwal
Автор

Dear Harry, why did you stop Machine Learning series. Please continue. It was very useful.

yudhi
Автор

for i in range (1, 20, 3) # Here 1 is starting number of for loop and 20 is last number and 3 is used for jumping/gapping number between range.

rohitmaurya
Автор

Hi Harry!
I follow your channel and really like your content. I wonder if you could make a separate video on Excel automation through Python. As I work in the financial industry such a course would be really helpful. Some of the organizations are still using the age-old VBA to automate excel file. However, if we start using python, it will really make our job a lot easier. Thanks in advance.

rahulsaha
Автор

Thanku Harry bhai for protecting our carrier in coding 😊😊

abhiupadhyay
Автор

Was confused about how to use for loop, but now got some clarity. Thanks

yatinshekhar
Автор

00:00 Introduction to Loops
01:31 Loops in programming
03:07 Python has iterable objects that can be looped over using for loops
04:33 Learn to iterate through strings and lists in Python
06:07 Learn about indentation, iterating lists, and using the for loop
07:38 Print numbers between two given values using range() function
09:24 Understanding the range function in Python
10:56 Explore the third parameter of range
Crafted by Merlin AI.

minetech