Difference between FOR LOOP and WHILE LOOP in Python programming | Python programming tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ม.ค. 2025

ความคิดเห็น • 43

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

    *Part 2 out now* : th-cam.com/video/RU02hH52reI/w-d-xo.html
    since you guys really loved this video, I have created part 2, you can watch it from the above link
    ...........................................
    I have also released Patterns, Problems, Data Structures & Algorithms (3 in 1) comprehensive course check it out from the below link : www.udemy.com/course/python-for-patterns-problems-data-structures-algorithms/?referralCode=186515267189E391E366

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

    dude...this was the simplest yet powerful explanation , i was a bit confused about these two. now its perfect with no doubts. you deserve more views and subs ❤❤❤❤

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

      Hey thanks man, really appreciate the kind words 😊❤️

    • @asiemens7
      @asiemens7 2 ปีที่แล้ว

      Agreed. I wrote a few scripts with while loops because I was moving fast and didn’t take the time to understand for. Today I was writing vba and the suggestion was to use for. This evening I started to realize the difference but couldn’t explain the application succinctly. This is perfect. If the end condition is the end of a list or range you use for. If the end condition is anything else you use while.

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

    This is pure gold. thank you bro

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

    You won't know how much it helps.. great explanation thank you❤

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

    Ya it's working I really telling a big thanks to u sir I forgot my confusion after watching ds video sir .

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

    This video just saved me from a mental breakdown, thank u

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

    the main thing WHY and WHEN you explained bro..thanks a lot

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

    Good content bro. Wish I had found this video earlier. Keep it up👍

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

    The video content is so excellent, congratulations

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

    Thanks for explaining the difference, i couldnt really grasp on to the concept

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

    very helpful, Thanks @Tycomac Codes

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

    Thanks, you explained in a very easy way

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

    Thank you so much for making this video☆

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

    Thanks for the good video about For and While loops

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

    Concise and clear, this was an awesome vid, thanks!

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

    That was incredible thanks a lot 😎👌

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

    Very good explanation for begginers

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

    Just awesome and clear.

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

    Thanks, this was really helpful.

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

    Best example

  • @allvideos7599
    @allvideos7599 2 ปีที่แล้ว

    Which environment it is....suggest any aap that we can practice in mobile phone ...please

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

    Really helpful. Thanks a lot 👍

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

    Good explanation 🙏

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

    What is meaning of while true here? How while true is working

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

      Every time it loops it asks is the condition true (in this case it's always is) if it's true enter the loop if it's not don't enter the loop
      In this case if the programmer doesn't put a break in the body of the loop it will be an infinite loop

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

    Thank you bro 😃

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

    Thanks king

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

    Holy shit man thanks alot

  • @hey-simba
    @hey-simba 3 ปีที่แล้ว +1

    I am from fb

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

      Haha good to know, haven't uploaded there much but soon i'll start uploading there too

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

    So, Elon Musk and his wife changed their son's name to pass also this while loop.

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

      hahahaha that was good one!!!

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

    The video content is so excellent, congratulations