Python Tutorial for Beginners 7: Loops and Iterations - For/While Loops

Поделиться
HTML-код
  • Опубликовано: 22 ноя 2024

Комментарии •

  • @imdadood5705
    @imdadood5705 4 года назад +89

    I don’t skip ad that comes in your videos. I don’t know if you get paid if we don’t skip ads. That is the least I can do for now. I am definitely donating, once I get a job in my field. Thank you for this Corey. It is truly amazing!

  • @choudhrysaab
    @choudhrysaab 5 месяцев назад +21

    I've been studying python coding for a while (on and off) and until a couple of days ago I had never heard of you. Like I said, I've looked a lot of material throughout various websites when it comes to Python learning so I'm surprised I had never known your RUclips channel. I came across your name while going through my Reddit feed and someone had asked a question who is the best Python tutor and your name was on top of the list with an excessive amount of upvotes and after looking you up I can definitely see why that was the case. Your videos are short and to the point and explained in the most simplest of terms; making them easy to grasp and not leaving anyone dumbfounded. Thank you so much providing these videos as they're helping immensely.

  • @Грамматистъ
    @Грамматистъ 3 года назад +1

    love this guy. talks business, no unnecessary words. it really saves time

  • @moz658
    @moz658 6 лет назад +92

    I've tried many tutorials explaining while and for loops on youtube. This guy is by far the best tutor explaining them very clearly.

    • @theblackelephant
      @theblackelephant 3 года назад +2

      Guy I was like you

    • @Sjjeien
      @Sjjeien 2 месяца назад

      But i still didn't get that. Infact i followed all the lectures and gain knowledge. But this one and previous video made me furious. I never encountered this scenario before.
      Still they call it "oh python is simple language"

  • @ssss54
    @ssss54 4 года назад +139

    Corey I don't think I have come across a better Python training material than this. It is just too good and explains in detail about the concepts with good examples.

  • @evamakri9694
    @evamakri9694 Год назад +2

    Honestly speaking (because I've struggled a lot) , there is no loop video that tops yours! You say just what needs to be said to grasp the general idea! Thanks man, you are the best! I will absolutely watch your content!

  • @Warfalcon
    @Warfalcon Год назад +9

    Your examples you provide are so much more helpful then the very basic "here is a for loop" explanation. You go one extra step to provide a more real world use, which is much more helpful for me. Thank you!

  • @timotheospetros
    @timotheospetros 5 лет назад +6

    Best Python tutorials I've ever seen on RUclips. Organisation of material, clarity of presentation, pacing of instruction all 10/10. I do online tutoring myself, so I'm very conscious of these requirements.

  • @hardik12361
    @hardik12361 7 лет назад +111

    I tried to learn programming quite a few time and quit countless times... you are the one with whom i actually i made it as far as this video..been here since python tutorial for beginners 1 ...and plan to complete and rock like you do :) ....keep it up bro... great work ...much love

    • @voke4553
      @voke4553 4 года назад +3

      How’d it go

    • @flocela
      @flocela 4 года назад +2

      I'm happy for you, Han! : )

    • @Justin-ky1cr
      @Justin-ky1cr 3 года назад +1

      Update please

    • @hardik12361
      @hardik12361 3 года назад +13

      @@Justin-ky1cr Almost done with django, i wrote some silly programs for my friends business and they liked it...learning more and more as i go on

    • @hardik12361
      @hardik12361 3 года назад +9

      @@voke4553 Explanation is so easy, i actually learn concepts from here. Still i do have to visit old videos sometimes for refreshing my memory :)

  • @luismartindelcampo9510
    @luismartindelcampo9510 7 лет назад +61

    Hello Corey, a few days ago I was stuck trying to understand how to work with files from a python book I'm reading, so I decided to look for other resources, and that's how I found your video tutorials. I really like how you explain things, I see that you put an effort for us to understand the concepts and not just memorize stuff.
    I appreciate you took the time to make this videos since they have been a great learning resource for me. Keep up the good work!
    Saludos desde Mexico!

    • @coreyms
      @coreyms  7 лет назад +4

      Glad to hear you found the videos useful!

  • @xcrazysunshine
    @xcrazysunshine Год назад +3

    I have been struggling SO hard with loops in my Intro to Programming class and this helps so much. Thank you!

    • @easydatascience2508
      @easydatascience2508 Год назад

      You can see mine too. The channel has Python crash course tutorials, with detailed code files downloadable. The channel has another playlist, R beginning course.

  • @bettaexp
    @bettaexp 3 года назад

    I never "like, comment, and subscribe" but I'm learning Python and I was hard stuck trying to figure out why my loops weren't working and turns out they key was the 'continue' command that I didn't know about. Thank you so much!

  • @sechvnnull1524
    @sechvnnull1524 4 года назад +12

    Awesome job! I can tell you that as someone who has taken programming as part of my degree in college you do an amazing job at explaining things. Crystal clear. Thank you for this content and the hard work you put into this series. This is helping me immensely!

  • @mayankchawda2405
    @mayankchawda2405 4 года назад +7

    These are hands-down the best tutorials for python I have ever seen.
    Keep doing the amazing work.

  • @SURYAPARIDA-r7i
    @SURYAPARIDA-r7i 3 месяца назад

    I'm definitely gonna recommend this Playlist to gain a Strong Foundational knowledge in Python in just an Hour !!! Loved it

  • @AdityaKumar-ox3wz
    @AdityaKumar-ox3wz 6 лет назад +18

    I was afraid of programming languages but you came out as a Saviour.Thanks ,Sir.

    • @sukriti2415
      @sukriti2415 Год назад +1

      what u doing now got job or something?

    • @joshuaoffman920
      @joshuaoffman920 8 месяцев назад

      was about to ask lol
      @@sukriti2415

  • @tjsmith2521
    @tjsmith2521 Год назад +3

    Wow! You are the first person I've came across on the internet who has explained this so well! Thank you Corey!!! I'm a math fanatic and I wanted to learn iterations and loops so badly for my own sake but apparently no one explained well enough how to make the infinite loop stop without pressing ctrl C, as they didn't know how to explain well enough.

  • @comfyaura
    @comfyaura 2 года назад +1

    Wow this was so simple. I have been reading articles, the textbooks, and attending lecture, but this was just, straightfoward. Wow. You have amazing teaching and explanation skills.

  • @federicovazquez9011
    @federicovazquez9011 5 лет назад +12

    This seems to help explain my confusion with loops. Loops are there to help us write out steps out in a simple manner rather than typing out consecutive steps.
    With for loops, it’s for a definite number of times 1-5
    But with while loops it can go on forever

  • @riteshsingh118
    @riteshsingh118 7 лет назад +308

    I wonder, who the one hell has given the thumbs down for such a beautiful video on python learning!!

    • @ali-rizatoprak7296
      @ali-rizatoprak7296 7 лет назад +3

      I guess who doesn't like python. :D from one big like.

    • @ShivamJha00
      @ShivamJha00 6 лет назад +1

      Add me in the list.. Python is the most horrible language. C++ (or all other C-like languages) are far more better and conceptual

    • @iamthebull5SH
      @iamthebull5SH 6 лет назад +3

      Maybe because he ran an infinite loop and told us that the way to stop an infinite loop on most operating systems (by the way, a majority of the operating systems in use today are Windows operating systems) is to press Ctrl + C, but in most Windows environments, Ctrl + C is used for copying objects. TL;DR: False information

    • @ShivamJha00
      @ShivamJha00 6 лет назад

      Ryan Nordquist nope. Linux is far more better than that shitty windows. And world is moving towards it..

    • @saurabh75prakash
      @saurabh75prakash 6 лет назад +1

      @Tech store, C++ is the most horrible(read complex) language. Google it.

  • @balapaudel
    @balapaudel 6 лет назад +9

    Finally a clear understanding of While Loop. Thank you Corey.

    • @ninjapirate123
      @ninjapirate123 4 месяца назад

      yup its like me telling you to keep running until I tell you to stop

  • @vijivenkatprananya3629
    @vijivenkatprananya3629 4 года назад +1

    You are the one who made me pursue coding as a passion.

  • @FamFitFun
    @FamFitFun 4 года назад +1

    its lockdown day 10 : making use of time to learn Python again ..@Corey Schafer is only Hope after exploring more than dozen courses.

  • @trinib1
    @trinib1 3 года назад

    this is the best python learning channel on RUclips..

  • @aminehatunozturk3171
    @aminehatunozturk3171 3 года назад +2

    You have a clear English so I can understand it easily.

  • @accountdeleted6301
    @accountdeleted6301 5 лет назад +2

    Best version of python for programmers and beginners for self study.

    • @haileyr2264
      @haileyr2264 5 лет назад

      Guleid Muhuyadin and for college students
      I don’t understand the material in my class but this helped me so much hahaha

  • @renegranit240
    @renegranit240 Год назад

    your videos are so unbelievably good. The things i dont unterstand in a whole schoolyear i learn in a couple days from your videos

  • @akashp4863
    @akashp4863 4 года назад +2

    You are a Gem amongst mentors

  • @story_time007
    @story_time007 4 года назад +1

    I actually got a clearer explanation from this video. Thanks for this. A million thumbs up from me.

  • @yanggao4878
    @yanggao4878 6 лет назад +5

    Corey your tutorial vids are the most elegant and well-paced among all the vids that I have been trying to follow. Thanks a lot and keep up the great work :)

  • @rathorrath401
    @rathorrath401 4 года назад +2

    Man, Thank you so much. Your videos are the only ones that explain it in such a detailed, yet approachable manner. I've learned more by watching your videos than any other resource out there.
    Again. Thank you. If you ever have a bootcamp, let me know. lol

  • @niroshilawinjeya2409
    @niroshilawinjeya2409 6 лет назад +3

    I dint understand the loops clearly until i watch this video...Thank you so much sir..you are the best python teacher on You Tube :)

  • @d1ntz9s
    @d1ntz9s 3 года назад

    Corey, thank you! This tutorial showed me how to fix a problem I was having with an assignment.

  • @patrickwheeler1979
    @patrickwheeler1979 Год назад

    Good stuff, just got done with Pandas a few weeks back and now I am filling in some gaps. Thanks for this wonderful content

  • @yahiaessam2248
    @yahiaessam2248 4 года назад +2

    dude you and your videos are pure gold

  • @vigilantea6822
    @vigilantea6822 6 лет назад

    Thank you so much for this video, I have only recently began to study python and every has been a breeze until I got to loops. The teacher I had unfortunately didn't explain them well for me but I understand them way more thanks to this video. Much appreciated dude

  • @yiiuu3
    @yiiuu3 6 лет назад +2

    Thanks! your video tutorials is what i used as a video referrence to the book called 'lean python-learn just enough python..' really helpful.

  • @oluwasegunajayi8011
    @oluwasegunajayi8011 4 года назад

    Mr Schafer, you're actually doing a great job 👍💪. Totally simplified, impressive!

  • @akagami2128
    @akagami2128 5 лет назад +3

    finally I understood looping in python. u the man.

  • @charlottejoytrudgill1690
    @charlottejoytrudgill1690 4 года назад +2

    This is a great explanation of loops! Structured and clear. Thank you!

  • @dannyc.2795
    @dannyc.2795 7 лет назад +70

    love your vids Corey. One minor suggestion would be to increase the font size in your IDLE. Would make it alot easier to view on different devices.

    • @1oh169
      @1oh169 6 лет назад +9

      IDE you mean?

    • @ahmadhanif1481
      @ahmadhanif1481 6 лет назад +1

      integrated development environment

  • @rc_woshimao957
    @rc_woshimao957 3 года назад

    As a Python novice, I am really really thankful of this video!!!! I was looking at the free linked in class and it was so confusing. You are lifesaving. Thank you so much!!!! Happy new year!!!

  • @BestDoDo
    @BestDoDo 4 года назад +1

    Corey thank you, you are such a wonderful teacher. Comparing to others, you explain very easily.

  • @raresdammon
    @raresdammon 2 года назад

    Best Python tutorials out there, hands down!

  • @mahshidpooladvand8502
    @mahshidpooladvand8502 10 месяцев назад

    The best explanation of loops and iterations!
    Thanks Corey joon!

  • @MattWatsonHarmonica
    @MattWatsonHarmonica 2 года назад

    While loops have always been confusing to me. Thank you for clearing this up!

  • @pandrakaushik
    @pandrakaushik 5 лет назад +1

    Hey Corey. You're absolutely amazing. A clear and slick way of understanding anything in your tutorials. It would be a great help if you give out various examples and explain them. Like the whole program itself involving all the elements from previous videos. Thanks a lot. You're educating thousands for free.

  • @skeppy8925
    @skeppy8925 3 года назад

    Great tutorial! I’ve been having issues understanding loops, and your video gave a nice/short description of the basics of them. Thanks!

  • @nehat786
    @nehat786 6 лет назад +2

    No question brother. You explained so well. Love you!

  • @sritejavavilala8976
    @sritejavavilala8976 2 года назад

    This channel deserves more subs

  • @JusBlaze1028
    @JusBlaze1028 3 года назад

    I'm taking a Python course right now for school & you definitely cleared up some confusion I had with for & while loops (I was over-thinking it too much smh). Thank you for breaking it down for myself & other RUclips subscribers!

  • @ExcelTutorials1
    @ExcelTutorials1 Год назад

    Love the way that you explained this, I finally feel like this is starting to click. Thank you!

  • @abdalmjeedmjody1923
    @abdalmjeedmjody1923 5 лет назад +3

    good job, clear and smoothy .. thank you in infinite loop

  • @raashed
    @raashed Год назад

    even after these many years his videos are still intresting 🙌

  • @harneshsharma3141
    @harneshsharma3141 3 года назад

    You are simply awesome. I can understand every bit of what you cover in your videos. Though I don't have any programming background, I thoroughly enjoy watching your videos. I'm confident now that I can learn python. Thanks!!

  • @shreyashraj
    @shreyashraj 4 года назад +3

    After 3 years still, this video is very helpful

  • @RandomShowerThoughts
    @RandomShowerThoughts 5 лет назад +1

    All we need is a time and space complexity and this playlist would be complete!

  • @timgore829
    @timgore829 4 года назад

    An excellent explanation of "for / while" loops within Python 3! Thanks.

  • @danielfry5234
    @danielfry5234 2 года назад +1

    I like your style Corey :) many thanks

  • @benderbendingrofriguez3300
    @benderbendingrofriguez3300 5 лет назад +15

    for x in range (1,1000):
    print(' LOVE THIS VIDEO')

  • @cathtg3
    @cathtg3 5 лет назад +591

    I dont get how i pay 9000 dollars a semester when i learn from RUclips for free.

    • @coreyms
      @coreyms  5 лет назад +99

      Feel free to share with your classmates :)

    • @cathtg3
      @cathtg3 5 лет назад +6

      @@coreyms do you know how to make a loop where it ask an user input production per day and increases 1 day in the question, for example ("Enter production at day 1) then each time it ask it changes to 2,3,4,5. Is this possible?

    • @abdulmalikbalogun2572
      @abdulmalikbalogun2572 4 года назад +10

      If you haven't found out yet, here's a possible solution. Make a file with "1" in it. Then make a python program that reads the file, uses the number in the file, and then when it is done it overwrites the file by making the number larger by adding the number one to it.

    • @davidbrown2806
      @davidbrown2806 4 года назад +30

      Its the piece of paper that is worth the $9000 ..... lol

    • @DreaminBig
      @DreaminBig 4 года назад +1

      I know right!!

  • @leynahoang3141
    @leynahoang3141 2 года назад

    thanks for creating this video. reviewing for my comp sci midterm

  • @soumyazyx
    @soumyazyx 5 лет назад +1

    Thank you Corey for your time and effort. Keep spreading the knowledge.

  • @urrahman196
    @urrahman196 4 года назад +1

    just for others who dont know-shortcut of commenting here is to go to that line and press ctrl+shift+/(if you use ubuntu),same for multiline just have to select multiline and do accordingly

  • @chaimwuensch7199
    @chaimwuensch7199 2 года назад +1

    really helpful, you did a great job explaining the different loops too, thank you!

  • @abdurrahmanpm97
    @abdurrahmanpm97 6 лет назад +1

    Your tutorials are amazing. Please make more of these tutorials. I am going through all of your videos.

  • @maximillianramirez1189
    @maximillianramirez1189 2 года назад +1

    Your videos are so easy to follow 👍

  • @benwang6659
    @benwang6659 3 года назад

    Fell very easy to understand and I will follow it.Thanks

  • @abdulrazaqbature1523
    @abdulrazaqbature1523 4 года назад +1

    i really admire your explanation, you are great

  • @ram_qr
    @ram_qr Год назад

    so clear and brilliant explanation

  • @bhuvanmanocha903
    @bhuvanmanocha903 4 года назад +1

    Really nice explanation on this concept of loops! Thank you!!

  • @test42356y
    @test42356y 7 лет назад +4

    Awesome tutorials. Tried learning with the "Learn Python the Hard way" book, but you explain concepts far more succinctly and clearly. Kudos

  • @RicherTV
    @RicherTV 5 лет назад +6

    Thank you! I had been stuck as my list was counting downwards.

  • @AllAboutDubaiLife
    @AllAboutDubaiLife 3 года назад

    i guess i am gonna pass this semester with the help of your videos. Because all my courses like artificial intelligence and digital image processing need python and thank you for clearing my concepts.

  • @glamify524
    @glamify524 2 года назад

    Another awesome breakdown. Very simple and easy to follow

  • @norb3695
    @norb3695 3 года назад

    Im 12 years old and Im learning python, and you helped me learn it further!

    • @eatingtacoi7757
      @eatingtacoi7757 2 года назад

      instead of learning python, u should learn how to figure out your alphabet

    • @norb3695
      @norb3695 2 года назад

      @@eatingtacoi7757 What the fuck do you mean "figure out your alphabet"

  • @petemonique1494
    @petemonique1494 4 года назад +1

    Thank you for making this video, i'm currently going through python in easy steps and was stuck on loops. You explain things so clearly :)

  • @7XxKiKoOxX7
    @7XxKiKoOxX7 4 года назад

    Video 07 out of 143 ! I'm absolutely loving it :)

  • @doangmawar8716
    @doangmawar8716 5 лет назад +1

    Very very clear explanation, thanks sir.

  • @adimizrahi24
    @adimizrahi24 2 года назад

    that so F**ing easy now damn ive try do understend that for 2 days and here u come with a damn 11 min video and now i can explain it OMG i was so frusterated!!! ty so much man

  • @Sergmagnum
    @Sergmagnum 8 месяцев назад +1

    your tutorials are the best!!

  • @FarizDarari
    @FarizDarari 5 лет назад +2

    Great overview of Py loops!

  • @WIFEYLADIE
    @WIFEYLADIE 3 года назад

    Definitely helped my understanding. Thank you. This is much appreciated

  • @heshankumarasinghe3159
    @heshankumarasinghe3159 4 года назад

    I learnt new things..... Thank you for uploading these videos.....

  • @jayasimhareddy3789
    @jayasimhareddy3789 4 года назад +2

    youtube recomended your video, thats the best thing happend.

  • @alwalid9547
    @alwalid9547 7 лет назад +2

    your videos are always the best. you are GREAT Corey

  • @anatoliyloboda4601
    @anatoliyloboda4601 Год назад

    Corey! Thanks for video!
    If it is possible I`d like to ask you to tell about how we can break an outer loop when some condition is met in an inner loop.

  • @guilhemlinde
    @guilhemlinde 5 лет назад +2

    amazing to have such good content for free.

  • @ancienttimesband2012
    @ancienttimesband2012 3 года назад

    The way you teach is amazing.! Thank you so much for uploading these videos. Im subbing!

  • @Soda-ul9il
    @Soda-ul9il 4 года назад

    A tough boulder, now weakened, thanks to you.

  • @tulikamal
    @tulikamal 5 лет назад +2

    Excellent tutorial about python, I like all your video very much. Will wait for your tutorial regarding python popular packages like NumPy, Pandas, Scipy. Appreciate your effort

  • @chaitanyayeturi1312
    @chaitanyayeturi1312 3 года назад

    First of all, your teaching style is good, and anyone grabs ur teachings easily, and thanks for teaching us. you are the best tutor I have ever come up with in python language. can u suggest any python language book, which is best to go through other than your channel? Moreover, I am a beginner to python language I thoroughly enjoyed ur videos, if u can suggest me best python book to ur sensibility and I guess it suits me and it helps me to learn further (I like physical like books). In case if u written any books related to this language can u suggest one (or) your favorite book, please......................................

  • @rannicholas6730
    @rannicholas6730 5 лет назад +1

    A great tutorial, hope to see more video tutorials about different statements in python.

  • @QueenBean19
    @QueenBean19 5 лет назад +2

    very useful videos great for my computer science revision :)

  • @naoldinku2045
    @naoldinku2045 7 лет назад +2

    two people watched this video up-side-down and liked it!!

  • @tonyfondacaro1980
    @tonyfondacaro1980 2 года назад +2

    Trying to get through Udemy's "100 Days of Python" and I'm having to supplement it with your content. You're a life saver man, that course really doesn't explain things very well.

  • @graphene1487
    @graphene1487 3 года назад

    thank you for this! Great when played at .5 speed.

  • @yadhunandan5765
    @yadhunandan5765 3 месяца назад

    thank you corey i understood very well.

  • @She_cooks2023
    @She_cooks2023 Год назад

    Loving the series!

  • @WatashitachiEien
    @WatashitachiEien 7 лет назад

    You're very good teacher, thankyou so much.