For Loops in Python | Python Tutorial - Day #17

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ธ.ค. 2022
  • 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.
    Access the Playlist: • Python for Beginners (...
    Link to the Repl: replit.com/@codewithharry/17-...
    Join Replit the browser-based IDE used in this course - join.replit.com/code-with-har...
    ►Checkout my English channel here: / @programmingwithharry
    ►Instagram: codewithharry
    python, C, C++, Java, JavaScript and Other Cheetsheets [++]:
    Playlist: • Coding CheatSheets 🧾 b...
    ►Learn in One Video[++]:
    Python[15 Hr]: • Python Tutorial For Be...
    Python Advance[3.5 Hr]: • Python Programming Cou...
    Python[1 Hr]: • Learn Python In Hindi ...
    Python[2 Hr]: • Python Tutorial In Hin...
    Python[15 Min]: • 15 Minute Python Tutor...
    JavaScript[1 Hr]: • JavaScript Tutorial
    C[1.3 Hr]- • C Programming Tutorial...
    php[1 Hr]: • Learn Php In One Video...
    php[2.3 Hr]: • Php Tutorial for Begin...
    php[Project]- • Login And Registration...
    HTML[30 Min]: • HTML 5 Tutorial For Be...
    CSS[8.5 Hr]: • CSS Tutorial In Hindi ...
    CSS[1.4 Hr]: • CSS 3 Tutorial For Beg...
    Wordpress[3.2 Hr]: • How To Make a WordPres...
    Angular[2 Hr]: • Angular Tutorial in Hindi
    Java[2.3 Hr]: • Java tutorial in hindi 🔥
    Web Scraping[1 Hr]: • Web Scraping Tutorial ...
    MongoDB[2 Hr]: • MongoDb Tutorial For B...
    Numpy[1 Hr]: • Numpy Tutorial in Hindi
    Android Dev[12 Hr]- • Android Development Tu...
    Linux[1 Hr]: • Linux Tutorial For Beg...
    JQuery[1.1 Hr]: • jQuery Tutorial For Be...
    Git and GitHub[1.1 Hr]: • Git & GitHub Tutorial ...
    ►Complete course [playlist]:
    React: • React Js Tutorials in ...
    Python- • Python Tutorials For A...
    OOP Python- • Object Oriented Progra...
    Java: • Java Tutorials For Beg...
    JavaScript- • JavaScript Tutorials I...
    PHP- • PHP Tutorials in Hindi
    C- • C Language Tutorials I...
    C++- • C++ Tutorials In Hindi
    Git & GitHub- • Git and GitHub Tutoria...
    Android Dev- • Android Development Tu...
    Python GUI- • Python GUI: Tkinter Tu...
    Web Development- • Web Development Tutori...
    Python Django: • Python Django Tutorial...
    Projects Using HTML, CSS & Javascript- • Projects Using HTML, C...
    Data Structure and Algo: • Data Structures and Al...
    Follow Me On Social Media
    ►Website (created using Django Rest & Angular): www.codewithharry.com
    ►Facebook: / codewithharry
    ►Instagram: / codewithharry
    Twitter: / codewithharry
    Comment "#HarryBhai" if you read this 😉😉

ความคิดเห็น • 1K

  • @syedaaiman6989
    @syedaaiman6989 ปีที่แล้ว +236

    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.

    • @secular786
      @secular786 9 หลายเดือนก่อน +13

      3-3 ke gap me print krega values ko 1-12 Tak

    • @GlitchyGlobe
      @GlitchyGlobe 8 หลายเดือนก่อน +10

      This is the best explaination, I couldnt find words to express.
      Thankyou

    • @Anubis_playzz
      @Anubis_playzz 8 หลายเดือนก่อน +3

      Best explanation in simple words .

    • @zq.nain.
      @zq.nain. 6 หลายเดือนก่อน

      thank you

    • @ananyasomabajpai358
      @ananyasomabajpai358 4 หลายเดือนก่อน

      Thanku bro

  • @CodeWithHarry
    @CodeWithHarry  ปีที่แล้ว +20

    Code Backup Repository: github.com/CodeWithHarry/100-days-of-code-youtube

  • @hetalchaudhary2881
    @hetalchaudhary2881 19 วันที่ผ่านมา +7

    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.

  • @pulkitpareek
    @pulkitpareek ปีที่แล้ว +221

    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

    • @TECHWIZARD137
      @TECHWIZARD137 ปีที่แล้ว +9

      Yup, As in C/C++

    • @arpankarmakar16
      @arpankarmakar16 ปีที่แล้ว +3

      Similar concept to string formatting step size argument.

    • @pubgmaster5827
      @pubgmaster5827 ปีที่แล้ว

      Bro but 10 tk hi isme 3 add hua h esa kyu

    • @pulkitpareek
      @pulkitpareek ปีที่แล้ว +6

      @@pubgmaster5827 uske baad 13 print hona tha lekin 13 tak range nhi hai, isliye 10 par stop ho gya

    • @arpankarmakar16
      @arpankarmakar16 ปีที่แล้ว +2

      @@pubgmaster5827 Aise samjho step or stride (step ko hi stride bolte hain). stride = 3 yani ki har 3ri number ko print karo. I think aise sochna makes it easier and their's also nothing wrong

  • @adnanbayadwala8670
    @adnanbayadwala8670 ปีที่แล้ว +52

    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!

    • @mujtabahussin6369
      @mujtabahussin6369 ปีที่แล้ว

      tablenum = int(input("which table you want?: "))
      table1 = int(input("x * y = x: type your y: "))
      print("



      ")
      for table1 in range(table1 + 1):
      print(f"{tablenum} * {table1} = ", table1 * tablenum)

  • @CodingWithJas
    @CodingWithJas ปีที่แล้ว +10

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

  • @TIYARA.M7
    @TIYARA.M7 8 หลายเดือนก่อน

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

  • @vineetkharkwal
    @vineetkharkwal ปีที่แล้ว +2

    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..🙏

  • @junaid19929
    @junaid19929 ปีที่แล้ว +69

    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 .

    • @rusty-coder
      @rusty-coder ปีที่แล้ว

      Updation function

    • @gnomeunknown4717
      @gnomeunknown4717 ปีที่แล้ว +3

      So basically an Arithmetic Progression with range(first term, sort of last term, common difference) ?

    • @cricketmode230
      @cricketmode230 ปีที่แล้ว +1

      That its call as jump ..

    • @BhooveshVyas
      @BhooveshVyas ปีที่แล้ว

      ​@@gnomeunknown4717yesss

    • @nagwag123
      @nagwag123 11 หลายเดือนก่อน

      hey this course by harry is enough for python?

  • @unolive8026
    @unolive8026 ปีที่แล้ว +155

    Not first ,but I am regular watched your video

    • @ABsingh.143
      @ABsingh.143 ปีที่แล้ว +2

      Naam kya hai, aap ka..

    • @KoushikDas2005
      @KoushikDas2005 ปีที่แล้ว +8

      I have regularly watched*

    • @Tanishq_Chaurasia
      @Tanishq_Chaurasia ปีที่แล้ว +2

      Haa ye krlo pehle

    • @nawalkishor1914
      @nawalkishor1914 ปีที่แล้ว +2

      @@KoushikDas2005 i am regularly watching **

    • @KoushikDas2005
      @KoushikDas2005 ปีที่แล้ว +2

      @@nawalkishor1914 that's true in present continuous
      I said in present perfect
      Haha :)💀

  • @user-px9gn7ry7x
    @user-px9gn7ry7x 11 หลายเดือนก่อน +11

    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 = " ")

    • @sharma..8905
      @sharma..8905 หลายเดือนก่อน

      copied answer

  • @vertechua
    @vertechua ปีที่แล้ว +27

    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.

  • @yatinshekhar787
    @yatinshekhar787 6 หลายเดือนก่อน +11

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

  • @arnavtumbde6249
    @arnavtumbde6249 ปีที่แล้ว +5

    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.

  • @NostalgistGuy
    @NostalgistGuy 8 หลายเดือนก่อน

    Thank you, brother. your way of teaching is amazing. very well understood now. thanks.

  • @abhiupadhyay5337
    @abhiupadhyay5337 ปีที่แล้ว +2

    Thanku Harry bhai for protecting our carrier in coding 😊😊

  • @debasishbesra2901
    @debasishbesra2901 ปีที่แล้ว +21

    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.

    • @prabhkiratsingh4a917
      @prabhkiratsingh4a917 ปีที่แล้ว

      yes bro!!!

    • @Aditya-jo1of
      @Aditya-jo1of ปีที่แล้ว

      @@prabhkiratsingh4a917 bhai mai class 4 mai hu

    • @sureshyadav9317
      @sureshyadav9317 ปีที่แล้ว

      @@Aditya-jo1of to?

    • @Aditya-jo1of
      @Aditya-jo1of ปีที่แล้ว

      @@sureshyadav9317 mai bta rha hu mai class 4 mai hu

    • @sureshyadav9317
      @sureshyadav9317 ปีที่แล้ว

      @@Aditya-jo1of are bhai bhut seekh liya hoga per jbtk tumhari job lgegi tb tk coding will be of ai

  • @yudhi1980
    @yudhi1980 ปีที่แล้ว +9

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

  • @user-he8mh9ny9s
    @user-he8mh9ny9s 4 หลายเดือนก่อน

    Present sir ji, Thanks for all your effort and make us learn everyday a new thing. bohot bohot dhanyawad apka. you deserve more than 100M subscriber you will reach soon sirji. best teacher we are watching.

  • @satyahacur
    @satyahacur ปีที่แล้ว +1

    thank u bhaiya my final term exam is ahead of me and your playlist is very helpful to me. 🙏🙏🙏

  • @rahulsaha7539
    @rahulsaha7539 ปีที่แล้ว +9

    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.

  • @oo-tes6642
    @oo-tes6642 ปีที่แล้ว +50

    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 😂😂

    • @amanKumar-sn1te
      @amanKumar-sn1te ปีที่แล้ว +3

      You are right bro 👍👍👍

    • @Umer_Ayyan
      @Umer_Ayyan ปีที่แล้ว +1

      Same bhai

    • @sandeepshorton
      @sandeepshorton ปีที่แล้ว

      😂

    • @sonumehta8515
      @sonumehta8515 ปีที่แล้ว +1

      us bhai😂😂

    • @mujtabahussin6369
      @mujtabahussin6369 ปีที่แล้ว

      tablenum = int(input("which table you want?: "))
      table1 = int(input("x * y = x: type your y: "))
      print("



      ")
      for table1 in range(table1 + 1):
      print(f"{tablenum} * {table1} = ", table1 * tablenum)
      #can you for table of millions * millions

  • @learnify9621
    @learnify9621 ปีที่แล้ว +1

    amazing helpful videos i have ever taken.

  • @Infinite49177
    @Infinite49177 ปีที่แล้ว +2

    Thank you harry bhai for this amazing course 💜💜💜💜

  • @vedprakashjaiswal25
    @vedprakashjaiswal25 ปีที่แล้ว +2

    Third parameter will increment the loop according to its vale(value passed in third parameter)

  • @minetech9972
    @minetech9972 8 หลายเดือนก่อน +16

    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.

    • @praveendeshaveni6408
      @praveendeshaveni6408 7 หลายเดือนก่อน +1

      Bro are you completed this course how many days you have taken to complete

  • @amitranjeetjha1240
    @amitranjeetjha1240 ปีที่แล้ว

    This course is awesome 🔥🔥

  • @Gametechbiro
    @Gametechbiro ปีที่แล้ว

    Thanku so much Harry bhai ur god in programming best way to learn ✌️

  • @jaideepawari7523
    @jaideepawari7523 ปีที่แล้ว +7

    A very helpful course Harry Bhai!
    Can't thank you enough

    • @clashingtv2527
      @clashingtv2527 ปีที่แล้ว

      Bhi Harry bhi ka 8 hr wala karlo 3 din me khatam ho jayga and fir aoo
      Fir jaldi samj ayga 😍

    • @mujtabahussin6369
      @mujtabahussin6369 ปีที่แล้ว

      tablenum = int(input("which table you want?: "))
      table1 = int(input("x * y = x: type your y: "))
      print("



      ")
      for table1 in range(table1 + 1):
      print(f"{tablenum} * {table1} = ", table1 * tablenum)

  • @rohitmaurya6897
    @rohitmaurya6897 ปีที่แล้ว +6

    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.

  • @user-jg5no2xj4z
    @user-jg5no2xj4z 7 หลายเดือนก่อน

    thank you so much Hary Bhai for you awesome explanations! Amazing content as always!

  • @programmerlovers8071
    @programmerlovers8071 ปีที่แล้ว +1

    You are so awesome sir we love you ❤️❤️🙏.

  • @KoushikDas2005
    @KoushikDas2005 ปีที่แล้ว +3

    11:48 it's the step value.
    Used for incrementing and decrementing the values as per requirement.
    It can go forward as well as backward as per the step value given.

    • @unolive8026
      @unolive8026 ปีที่แล้ว

      Regular watched* , Don't Span

    • @KoushikDas2005
      @KoushikDas2005 ปีที่แล้ว +1

      @@unolive8026 tu rhne de 🙏

    • @unolive8026
      @unolive8026 ปีที่แล้ว

      @@KoushikDas2005 tuhhhh. Toh gaya beta

    • @PROGRAMMER_CODER
      @PROGRAMMER_CODER ปีที่แล้ว

      #Decrement in for loop
      for l in range(20,15,-1):
      print(l)

  • @muhammadumairali4220
    @muhammadumairali4220 ปีที่แล้ว +5

    quick quiz :- third parameter is evaluated after each iteration in for loop

  • @technikalproblem6780
    @technikalproblem6780 ปีที่แล้ว

    Thank you sir creating this video!

  • @SamudranilDutta_Official
    @SamudranilDutta_Official 10 หลายเดือนก่อน

    Thanks for all this, but it would be super helpful for us and many if you would provide this with using the jupyter environment

  • @IAMSHARMA1108
    @IAMSHARMA1108 10 หลายเดือนก่อน +2

    Range parameters are (start, Stop, Step). So, loop starts with 1 and every iterations it Stops on 3rd parameter means (1,2,3) and then again starts from 4 and stop on another 3rd parameter i.e. 7 and it will go until it reach a value less than 12.
    Happy Learning !!!! 😁

  • @shaon1412
    @shaon1412 ปีที่แล้ว +30

    Day 6 of asking to make a discord server

    • @NiraShinde-se2ir
      @NiraShinde-se2ir 2 หลายเดือนก่อน +3

      Day 1 of telling wait for next year 😂

  • @indurani5744
    @indurani5744 ปีที่แล้ว

    thank you........ Awesome explanation.

  • @Codehatch344
    @Codehatch344 ปีที่แล้ว

    range(1,100,2) here 2 is a step value now step value is basically refers as the difference value between the two values e.g 1 and 3 so basically it is a common difference for an AP created by range function.

  • @MafiaFreeFire1
    @MafiaFreeFire1 หลายเดือนก่อน +45

    who is inn 2024 ??

  • @worldupdate122
    @worldupdate122 ปีที่แล้ว +4

    Big fan harry sir
    I have learnt whole basic python 12 hour video
    But I have not laptop
    May thats why I can't able to
    Make or use ' sample.txt file' or open sample.txt in pydroid3
    Except this I have learnt all things
    Please make a proper video on topic
    " open or write any .txt without opening "
    On pydroid 3
    Thanks a lot

    • @anantkumar007
      @anantkumar007 ปีที่แล้ว +2

      Why dont you use replit
      Its available for android

    • @worldupdate122
      @worldupdate122 ปีที่แล้ว +2

      @@anantkumar007 Bro it takes time to run the code as well as could not do if full screen in my device
      For to use my keyboard perfectly
      😏😏😏😏😏😏

  • @vmin_love_9
    @vmin_love_9 ปีที่แล้ว

    it is the property of range().
    In for k in range(1,12,3)
    print(k)
    1 is the value from where loop starts,
    12 is the value where loop stops,
    and 3 is the difference between the values.

  • @khushiMotivationWorld
    @khushiMotivationWorld ปีที่แล้ว +2

    Thank you sir 🙏❤️

  • @md.abdullahalmamun960
    @md.abdullahalmamun960 ปีที่แล้ว +3

    The step function is used as increment and decrement value for the range values which is added by python before printing the next element. The first element will printed as it is which is the starting,int,float and any element.

  • @adityagoswami8144
    @adityagoswami8144 ปีที่แล้ว +7

    Explanation of quick quiz : The third argument in range is used for determining the difference between two consecutive numbers:
    like shown at 10:58 in video the program print the numbers with a difference of 2 (3-1=2)
    and similarly at 11:17 the program print the numbers with difference of 3 (4-1=3)

  • @codingwithcode3083
    @codingwithcode3083 ปีที่แล้ว +1

    I really like this python course

  • @pinkiraghuwanshi8267
    @pinkiraghuwanshi8267 23 วันที่ผ่านมา

    Thq so much sir easy explain

  • @Kuch_Bhi-lets_explore_it
    @Kuch_Bhi-lets_explore_it ปีที่แล้ว +5

    Day - 17 Present Sir Python 🔥🔥 Sir please make a video on GSOC ( google summer of code , how we can participate and win the certification of GSOC and 1500$ Stipend from google , pls make a video on this from scratch , So we can participate in GSOC 2023 , Thank you so much harry bhai ❤❤

    • @RudrakshGirdhar-gb9zu
      @RudrakshGirdhar-gb9zu ปีที่แล้ว

      Is this course includes DSA???

    • @suvrajitpanda3797
      @suvrajitpanda3797 ปีที่แล้ว

      @@RudrakshGirdhar-gb9zu allready DSA playlist available in this channel you can chk

    • @Kuch_Bhi-lets_explore_it
      @Kuch_Bhi-lets_explore_it ปีที่แล้ว

      @@RudrakshGirdhar-gb9zu I don't know about It , Only Harry Bhai Can answer this , In my opinion Might be it include some DSA because it is for 100 days ....

    • @RudrakshGirdhar-gb9zu
      @RudrakshGirdhar-gb9zu ปีที่แล้ว

      @@suvrajitpanda3797 okay but I was asking can I rely on this for DSA?

    • @suvrajitpanda3797
      @suvrajitpanda3797 ปีที่แล้ว

      @@RudrakshGirdhar-gb9zu u can also use C program and Java for DSA

  • @aamirzaheeransari
    @aamirzaheeransari ปีที่แล้ว +3

    I am present 🎁🎉

  • @life-oh1bc
    @life-oh1bc ปีที่แล้ว +1

    "Samajh rahe ho ap? Samajh rahe ho?" was priceless lol!
    love you Harry bhai! awesome course

  • @NandhuandRojavlogs
    @NandhuandRojavlogs 11 หลายเดือนก่อน

    bhai thank you programming sikene ki meri mind set change jar Divya app

  • @krankumarsharma2895
    @krankumarsharma2895 ปีที่แล้ว +4

    Bhaiya vscode ka maza replit me nhi aa rha hai

    • @cacklesgaming7627
      @cacklesgaming7627 3 หลายเดือนก่อน

      To bhai tum vs code use karlo

  • @abhishekbapat315
    @abhishekbapat315 ปีที่แล้ว +4

    Fibonacci series can also be developed using the last example of range function with 3 parameters

  • @shrutiOP
    @shrutiOP 2 หลายเดือนก่อน

    #HarryBhai
    🙌 bohot achha sikhaya hai yaha tak. sab achhe se samajh aaya hai. i trust you aage bhi sab samajh ayega harry bhai 🙏

  • @mo.tahirnawaz4189
    @mo.tahirnawaz4189 ปีที่แล้ว

    This python course is helpful harry bhai 💫...

  • @anantkumar007
    @anantkumar007 ปีที่แล้ว +9

    Sorry Harry Bhai, I will not be able to follow this course
    My 10th pre-boards have started and boards pressure
    😔😔😔😞😞😞😞
    But after the boards I will definitely complete this course.
    Love you brother
    You got me into coding
    You are the best ❤❤❤

    • @shreeshmainde768
      @shreeshmainde768 ปีที่แล้ว +2

      bro I am in 10th too my prelims are gnna start from 8th jan but I have decided to give at least half an hour of my day to learn python programming like common we can dedicate at least 30 mins to programming

    • @deepikaop4545
      @deepikaop4545 ปีที่แล้ว

      bro ye sab bahana hai coding sachme sikhni hai to daily time fix krlo for bs utna time bhi doge to ho jayega samjhe

    • @mariamhasan3733
      @mariamhasan3733 ปีที่แล้ว

      Dude, I'm also going to give my 12th pre-board exam next time. You won't ever learn it if you keep leaving it for later. Better give at least 20 minutes to coding. This will help you to leave the monotonous of studying

    • @arpankarmakar16
      @arpankarmakar16 ปีที่แล้ว

      @@deepikaop4545 Boards jyada important hain bhai..

    • @akshadjogi2555
      @akshadjogi2555 ปีที่แล้ว

      @@arpankarmakar16 skills > degree

  • @navinthenoob2227
    @navinthenoob2227 11 หลายเดือนก่อน +6

    I made this program using loop for 1st TIME:
    print("This is Number Printer!")
    print("Print no. from 0 to 5000")
    print("")
    a=int(input("Enter first: "))
    b=int(input("Enter second: "))
    if a and b > 5000:
    print("Numbers Can Only be from 0 to 5000")
    else:
    if b

  • @03_cs_abhishekgour32
    @03_cs_abhishekgour32 ปีที่แล้ว

    thanks for this lecture😊

  • @sajalshrivastava2202
    @sajalshrivastava2202 5 หลายเดือนก่อน

    Thank you sir for this video

  • @rudrakshtripathi4592
    @rudrakshtripathi4592 ปีที่แล้ว +3

    Code :-
    for k in range(1,12,3):
    print(k)
    Explanation :-
    this basically means the 1 will be printed and after that 2 numbers will be skipped(2 and 3) and then 4 will be printed , this is happening because the third parameter given in the range function is called the step parameter, if the value of the step parameter is given as 4, then 3 values will be skipped and the 4th value will be printed.

  • @nigamGvlog
    @nigamGvlog 11 หลายเดือนก่อน +9

    attendance here

  • @MohiniGiri704
    @MohiniGiri704 ปีที่แล้ว +2

    Harry Bhai, it's your new python course for beginners so, I think that those who are beginners they should do more practice in python for mastering it...for that if u add some easy to hard level exercises like in your Desi style about each topic which u teach us ....if possible then Plzz could you implement on it...hope.....thx for teaching us in Desi way👍

    • @flakky1262
      @flakky1262 ปีที่แล้ว +1

      ahhhh same mai bhi yehi kah rha tha and your comment was posted 2 months ago matalab lectures jab ongoing the harry sir didnt even baited eye aghhhhh

  • @anikshaha3024
    @anikshaha3024 ปีที่แล้ว

    This course teach me python properly. I follow al vedios

  • @thegamezonboy8175
    @thegamezonboy8175 7 หลายเดือนก่อน

    Thank you for introducing Loop

  • @shashankbhardwaj7037
    @shashankbhardwaj7037 ปีที่แล้ว

    i have learned these like for loop ,while loop,match case statement but I have a lots of problems in function and recursion

  • @vishnuprasad9750
    @vishnuprasad9750 ปีที่แล้ว

    Bhai bahut bahut dhanyavaad Harry bhai, aur aapse mera request he ki aap code karte samay short cuts use karte ho na uska ek alag video banav please

  • @rohitmaurya6897
    @rohitmaurya6897 ปีที่แล้ว

    Thank you Harry Sir

  • @justforinspiration6061
    @justforinspiration6061 ปีที่แล้ว

    similar syntax of loop is in shell script also
    the 3rd value is for difference

  • @kaushikgupta6020
    @kaushikgupta6020 ปีที่แล้ว

    harry sir you are amazing

  • @krushanagaikwad5087
    @krushanagaikwad5087 ปีที่แล้ว +1

    Thank you bhai for this amazing python course

    • @suvrajitpanda3797
      @suvrajitpanda3797 ปีที่แล้ว

      Bro I want to learn python .
      I am a beginner ,for me which python course is good this one ya the previous one which is upload in this channel
      Reply?

  • @sairamshetti3319
    @sairamshetti3319 ปีที่แล้ว

    sir u are the greatest teacher

  • @soumyadipmajumder902
    @soumyadipmajumder902 ปีที่แล้ว

    @code with harry
    step is used for increment by size like i+2 or i+3 we write in java, c++ etc.

  • @biswajeet9826
    @biswajeet9826 23 วันที่ผ่านมา

    For loop seems more easy to comprehend!!

  • @DD_Bhagyesh
    @DD_Bhagyesh ปีที่แล้ว

    Maza aa gya Harry Bhai ❤️😉👌

  • @MaxGaming-ip4tc
    @MaxGaming-ip4tc 11 หลายเดือนก่อน

    That is incrementation (or decrementation) parameter that prints the value, number of values specified after the previous number

  • @user-ne8kg4ij2g
    @user-ne8kg4ij2g 8 หลายเดือนก่อน

    Thanks bhaiya 😊❤❤❤

  • @iamparikshitsingh
    @iamparikshitsingh ปีที่แล้ว +2

    if we are ranging something in x,y,z then, x,y are ranges from where it going to start and where it going to end and z is for stepping the range, if we are not using the stepping then the list will run as follows, i.e. (1,6) 1,2,3,4,5,........ and if we use stepping ( 1,6,2) then it will count 1 then skip 2 digits then show 4 etc. so the list is like ( 1,4.....)

  • @ulpnationll2953
    @ulpnationll2953 ปีที่แล้ว

    Basically step func. terminates or skip the no.s in between in loops.
    Just like in the above case where the code was:
    for i in range(1,12,3):
    print(i)
    The output is 1,4,7,10 . SO IT BASICALLLY SKIPS EVER TWO LETTERS IN BETWEEN THE NO.S OF IN SIMPLE WORDS IT ADDS 3

  • @anonymous____________________4
    @anonymous____________________4 ปีที่แล้ว

    Pranam bhrata 🙏 apka bahutt baht dhanyawad ❤️😌🙏😇

  • @howtovideos978
    @howtovideos978 5 หลายเดือนก่อน +1

    As a C++ student it was little confusing. But you explained it very well. Thanks:)

  • @saqlain_ch
    @saqlain_ch 10 หลายเดือนก่อน

    It prints the first value, and then keeps doing increments without printing any value until it reaches the nth value, where n is the step argument.
    For example we use 3 as 3rd argument and range 1-10, It will print 1st value which is 1 and then print every next 3rd value 1, 4(1+3), 7(4+3) , 10(7+3)

  • @abhishekmondal8208
    @abhishekmondal8208 8 หลายเดือนก่อน

    Step is the third parameter mentioned in the range function. It increments the value from the start to end limits by the value of the parameter given.

  • @namansharma8545
    @namansharma8545 ปีที่แล้ว

    Intro rocks like always...❤️❤️

  • @mr.electron5295
    @mr.electron5295 ปีที่แล้ว +1

    Haryy bhi step is use to skip a value from given range
    for eg :
    for i in range( 1, 20 ,10) :
    print(i)
    will print : 1, 11 as output
    it will jupm 10 steps form the first value

  • @biswajeet9826
    @biswajeet9826 23 วันที่ผ่านมา

    Java is helping a lot here!!

  • @KHILADIFFYT444
    @KHILADIFFYT444 9 หลายเดือนก่อน

    good explanation harry bhai

  • @mdsohanurrahmanhridoy1343
    @mdsohanurrahmanhridoy1343 ปีที่แล้ว +1

    Completed Day #17 Love From BD💙

  • @rockprashant7704
    @rockprashant7704 ปีที่แล้ว

    Thank you sir

  • @brandonnoronha5535
    @brandonnoronha5535 2 หลายเดือนก่อน

    Step is the argument in the range function in for loop which basically is a value which adds to the i variable. For example, if i=0 and step=2 then the output will be like print(i+step) which is equal to i=i+step i.e., 0+2=2

  • @kaifansari1327
    @kaifansari1327 ปีที่แล้ว +1

    day17 is completed and consistency is maintained

  • @siddharthgarhewal1998
    @siddharthgarhewal1998 ปีที่แล้ว

    Hey ="bhaiya",
    #You are awesome 👍👍👍
    Best explanation 👌👌

  • @sonnu9583
    @sonnu9583 ปีที่แล้ว

    Thank you Harry Bhai ❣️🥰🥰🥰

  • @mantra2965
    @mantra2965 ปีที่แล้ว

    The step function helps us to skip the digit entered.... For example if we enter 2 in skip..... We will be able to see 1-3-5-7....etc .....basically it skips that particular digit and gives you the output

  • @MIYAKHALIFA-jn3np
    @MIYAKHALIFA-jn3np ปีที่แล้ว

    harry bhaiya, ek request thi aapse yh ki jo v topic pe vedio banta hai us topic pe last me kuchh practice questions v de diya kariya.
    yese hm log us question ko karne ki koshish karenge nhi to bs yese hi yopic padh ke baith jate hm log us topic pe question khojne me dikkat hoti.

  • @idkjustok6629
    @idkjustok6629 หลายเดือนก่อน +1

    For k in range( start, stop, step)
    The loop starts k from "start" and increments by "step" till the time value of
    k < "stop"

  • @provokeman-bc3uq
    @provokeman-bc3uq 10 หลายเดือนก่อน +1

    for k in range(1,30,3):
    print(k+2)
    if we are print like this so we are get esily table of three
    and if we can print like this
    for k in range(1,20,2):
    print(k+1)
    so we can print table 2

  • @rajkamalkumar7022
    @rajkamalkumar7022 ปีที่แล้ว +1

    the third parameter is increment the value of range ex of for k in range( 1,200,4)
    this expression is starting in 1 and ending in i-1 and increment the value of 4 per iteration

  • @deepikaop4545
    @deepikaop4545 ปีที่แล้ว +2

    # for loop in string
    name = 'Vannie'
    for i in name:
    print(i,end=' ')
    print("Thanks for using it ")
    # for loop in List
    List01 = ['Vannie','Princess']
    for names in List01:
    print(names)
    # Range function
    # if you have seen Avengers Endgame You will get it
    for i in range(1,3001):
    print('Love You ',i)
    # Step argument in range
    for i in range(2,22,2):
    print(i)

  • @narendraparmar1631
    @narendraparmar1631 7 หลายเดือนก่อน

    Thanks Harry