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

Поділитися
Вставка
  • Опубліковано 2 жов 2024

КОМЕНТАРІ • 518

  • @catherinearmagost8574
    @catherinearmagost8574 5 років тому +577

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

    • @coreyms
      @coreyms  5 років тому +97

      Feel free to share with your classmates :)

    • @catherinearmagost8574
      @catherinearmagost8574 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!!

  • @imdadood5705
    @imdadood5705 4 роки тому +80

    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 4 місяці тому +19

    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 UA-cam 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.

  • @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.

  • @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.

  • @riteshsingh118
    @riteshsingh118 7 років тому +309

    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 5 років тому +1

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

  • @mutajen3695
    @mutajen3695 6 років тому +103

    It would be helpful to append a practical application of each example after the explanation of code

    • @zizo8737
      @zizo8737 5 років тому

      Jennifer R. 👍🏻

    • @AnoNymous-ie3wc
      @AnoNymous-ie3wc 5 років тому +26

      for this i recommend inventwithpython.com learn the basics here and get some tasks to do from those online readable books on the website.
      i worked with automatetheboringstuff.com (same author) and i really loved most of the examples.
      if you're also going with automate the boring stuff with python you can compare the examples with mine: github.com/Apop85/Scripts/tree/master/Python/Buch_ATBS
      But just to say. At the beginning i wrote all variables in german so i was able to follow it more easy. But i changed to go for english names after about half of the book. And i also overshoot some of the examples in at the beginning as i already was able to write easy scripts in bash and understood the basics already

    • @sdvelu
      @sdvelu 4 роки тому

      @@AnoNymous-ie3wc are those online readable books for free in inventwith python website ?

    • @AnoNymous-ie3wc
      @AnoNymous-ie3wc 4 роки тому

      @@sdvelu yes

  • @moz658
    @moz658 6 років тому +91

    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

    • @nh-vt5ws
      @nh-vt5ws Місяць тому

      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"

  • @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

  • @rannicholas6730
    @rannicholas6730 4 роки тому +1

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

  • @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!

  • @hardik12361
    @hardik12361 6 років тому +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 :)

  • @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

  • @birthdaygiraffe8802
    @birthdaygiraffe8802 3 роки тому +2

    The 92 dislikes are from angry coding professors who are outclassed

  • @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!

  • @Stevedorez
    @Stevedorez 5 років тому +1

    best explanation ever. thank you a lot.

  • @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!

  • @anaralizada8884
    @anaralizada8884 2 роки тому

    I appreciate your effor man

  • @7onysWorld
    @7onysWorld Рік тому

    this is amazing, thank you.

  • @benderbendingrofriguez3300
    @benderbendingrofriguez3300 4 роки тому +15

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

  • @AdityaKumar-ox3wz
    @AdityaKumar-ox3wz 6 років тому +18

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

    • @sukriti2415
      @sukriti2415 10 місяців тому +1

      what u doing now got job or something?

    • @joshuaoffman920
      @joshuaoffman920 6 місяців тому

      was about to ask lol
      @@sukriti2415

  • @kurcevickurac8876
    @kurcevickurac8876 6 років тому +2

    I can't understand one thing, when we write
    for num in nums:
    print(num)
    its same result like we have if we write
    for asdjwqkjdo in nums:
    print(asdjwqkjdo)
    so my question is, what num exactly defines? is that also a new assigned variable but becouse of the FOR loop behave not just as a string but printing results one after another?
    btw i like your tutorials but this confuses me.

    • @AnkurKumar-ur1cj
      @AnkurKumar-ur1cj 5 років тому

      In here, *num* defines to be an undefined variable whose sole purpose is for iteration. You can look at it as a reference object that has been brought/called on purpose to count how many times you want to execute the loop by checking in *nums* (which happens to be a list containing 5 elements) that means the iteration will happen 5 times .

  • @timotheospetros
    @timotheospetros 5 років тому +6

    Best Python tutorials I've ever seen on UA-cam. 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.

  • @muhammadabdullahdilshad8509
    @muhammadabdullahdilshad8509 5 місяців тому +1

    Notes ----------------------------->
    nums = [1,2,3,4,5]
    ################ For Loops ####################
    for nums in nums:
    if nums == 3:
    print("Found !")
    break # Breaks out of the Loop
    #If We use continue it will skip tot he enxt iteration without going any furthur
    else:
    print("Not Found")
    print(nums)
    nums = [1,2,3,4,5]
    ##Nested Loops
    for myval in nums:
    for letter in 'abc':
    print(myval,letter)
    #Range Loops
    for x in range (10):
    print(x)
    for x in range (1,10): #Explicitley tell where to start the Loop
    print(x)
    ########### While Loops #####################
    x = 0
    while x < 10:
    print(x)
    x +=1
    # To create an infintie loop until a conmdition is met
    x = 0
    while(True):
    if(x == 5):
    print("The Condition has met ")
    break
    print(x)
    x +=1

  • @mayankchawda2405
    @mayankchawda2405 4 роки тому +7

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

  • @user-su6js9po4l
    @user-su6js9po4l 4 роки тому +2

    uhhh i dont get while loops

  • @balapaudel
    @balapaudel 6 років тому +9

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

    • @ninjapirate123
      @ninjapirate123 2 місяці тому

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

  • @RicherTV
    @RicherTV 5 років тому +6

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

  • @mlittleprogramming780
    @mlittleprogramming780 4 роки тому +2

    Great video 👍🏻

  • @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

  • @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 :)

  • @Nick-jj6cl
    @Nick-jj6cl 4 роки тому +2

    For the nested for loop at 4:46, what if I would like to print the list as "1a 2b 3c 4a 5b 1c 2a 3b 4c 5a 1b 2c 3a 4b 5c", which means that I would like to loop through both lists simultaneously. In addition, I want to remove the space in each pairs of number and letter. What is the command to do this?

    • @ricardotijerina886
      @ricardotijerina886 4 роки тому

      to remove space between elements when printing you can do print(x,x,x, sep='') or try f strings like print(f"{x}{x}{x}") with no space between elements.

  • @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!

  • @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.

  • @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.

  • @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.

  • @rocketmoving3860
    @rocketmoving3860 5 років тому +2

    for video in 'Python Programming Beginner Tutorials':
    comment 👍
    another great video!

  • @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

  • @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

  • @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.

  • @asimniroula9846
    @asimniroula9846 3 роки тому +1

    Hi , Corey thank you so much for the video. Really appreciate it for the time and energy you put into this.
    I have a small confusion regarding the coding used with both letter and number where the output gives the result of 1a,2b ,3c and so on..... with the code my understanding was perhaps 1abc,2abs and so on..... How did the code sperate the letter abc with separate numbers. If possible could you explain the logic behind it.
    Thank you very much

  • @nh-vt5ws
    @nh-vt5ws Місяць тому

    Idk why they refer python as simple language. I followed every lecture. But the previous one and this one is making me furious and mind blowing.recently had a thought "Should i distroy my laptop"

  • @aminehatunozturk3171
    @aminehatunozturk3171 3 роки тому +2

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

  • @laxminarayancharan9254
    @laxminarayancharan9254 4 роки тому

    Wonderful videos . Thanks a lot cheers :-)

  • @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 :)

  • @paschalg3176
    @paschalg3176 6 років тому +5

    Loving your tutorial. I subscribed and like your video. Wish I am rich to donate for your work but still poor

    • @coreyms
      @coreyms  6 років тому +2

      Subscribing and liking helps plenty! Thanks!

  • @akagami2128
    @akagami2128 5 років тому +3

    finally I understood looping in python. u the man.

  • @arpanawasthi102
    @arpanawasthi102 8 місяців тому

    awesome content

  • @QueenBean19
    @QueenBean19 5 років тому +2

    very useful videos great for my computer science revision :)

  • @orcanmehmet
    @orcanmehmet 5 років тому +1

    be careful when it becomes endless loop my laptop is almost burned. btw if i compare with java ( i learnt it at university) python is realy much more effective and handy.

  • @mrCetus
    @mrCetus 2 роки тому

    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

  • @story_time007
    @story_time007 4 роки тому +1

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

  • @jaeprince6080
    @jaeprince6080 4 роки тому +1

    Can this help me w/ a problem like so :
    Print out all cubed numbers up to the total value 1000, so if the cubed number is over 1000 break the loop.

    • @M8rix
      @M8rix 3 роки тому

      for cube in range(1000):
      cube = cube**2
      print(cube)
      if cube < 1000
      break

  • @charlottejoytrudgill1690
    @charlottejoytrudgill1690 4 роки тому +2

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

  • @jayasimhareddy3789
    @jayasimhareddy3789 4 роки тому +2

    youtube recomended your video, thats the best thing happend.

  • @chaimwuensch7199
    @chaimwuensch7199 2 роки тому +1

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

  • @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

  • @anatoliikosiuha9794
    @anatoliikosiuha9794 6 років тому +4

    I cant stop my INFINITE LOOP by pressing ctrl+C

    • @jonspell88
      @jonspell88 4 роки тому

      Had the same problem with Sublime Text - it wants to Copy when you do ctrl-C!
      Ctrl-Break should work, but it didn't for me, so I went up to Tools, and chose Cancel Build (shortcut is Ctrl-Break ???) and that stopped it.

    • @naserabudieh3700
      @naserabudieh3700 4 роки тому

      @@jonspell88 I think its because he is on a mac because i am and it worked for me or its probably only for atom

  • @danielfry5234
    @danielfry5234 2 роки тому +1

    I like your style Corey :) many thanks

  • @alwalid9547
    @alwalid9547 6 років тому +2

    your videos are always the best. you are GREAT Corey

  • @TheLegendaryZeke
    @TheLegendaryZeke 5 років тому +3

    I hope this helps with my homework😁

  • @naoldinku2045
    @naoldinku2045 6 років тому +2

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

  • @Грамматистъ
    @Грамматистъ 3 роки тому +1

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

  • @abdalmjeedmjody1923
    @abdalmjeedmjody1923 4 роки тому +3

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

  • @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

  • @sunnyjoflife
    @sunnyjoflife 10 місяців тому

    Great job 🙏🏾 well explained. How do you comment 2 lines after you select it 10:14

  • @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.

  • @FarizDarari
    @FarizDarari 5 років тому +2

    Great overview of Py loops!

  • @Mike9201984
    @Mike9201984 2 роки тому +1

    All these loops are making me num 😝

  • @RandomShowerThoughts
    @RandomShowerThoughts 5 років тому +1

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

  • @mohdzainkhan9346
    @mohdzainkhan9346 Рік тому

    Why is it stuck in an infinite loop?
    Code eg:
    a=10
    While a

  • @guilhemlinde
    @guilhemlinde 5 років тому +2

    amazing to have such good content for free.

  • @ExcelTutorials1
    @ExcelTutorials1 Рік тому

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

  • @SnapZinc1
    @SnapZinc1 3 роки тому

    Ok so I've been watching all of your vids Corey. I just wanna say, you make it very simple and easy to follow along, but, I would say I'm a slow learner. I understand some of the terminology and understand most of what your coding and typing; But Is it normal to not understand some things? My buddies who also code just keep telling me to practice and make a small project or two. Any advice?

  •  Рік тому

    Ctrl + C does not work for me to stop the infinity while loop. As my laptom does not have any Pause/Break keys on keyboard I am stuck. The only way is through Tools -> Cancel Build, but I do not like that way. :/

  • @MangoLassiYT
    @MangoLassiYT Рік тому

    how would i know where will the if statement end
    eg
    n =[ 1,2,3]
    if n[0] = 1 :
    print("hi hello yo ")
    n[0] = 4
    n[1] = 4
    #i want to end if on after print statement how would i do that

  • @lpap6804
    @lpap6804 3 роки тому

    the first example at 1:50 didn't work for me. I got indentation error but when I code the : print(num) before the if statement in the line 5 it works, but it include 3 before it break??.. any thoughts when I made mistake?

  • @congee9417
    @congee9417 Рік тому

    Hello Corey, if we are dealing with a list instead of the variable x=0 at 8:22
    would this be the right code ? :-
    nums = [1, 2, 3, 4, 5]
    for num in nums:
    if True:
    print(nums)

  • @banji8171
    @banji8171 4 роки тому

    hey @Corey Schafer man put your bitcoin wallet address so we can support ya too, cuz we are living in Iran and there's no way to support ya with PayPal or Credit Cards. Love from Iran to my teacher Corey Schafer

  • @BestDoDo
    @BestDoDo 4 роки тому +1

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

  • @yahiaessam2248
    @yahiaessam2248 4 роки тому +2

    dude you and your videos are pure gold

  • @OctogiftedExperience
    @OctogiftedExperience 3 роки тому

    Been doing a python developer associate course for14 weeks and every week I become more confused .I understand when it is explained but then I can't implement it.

  • @DisgruntledVet
    @DisgruntledVet 4 роки тому

    Ctrl + c does not work in Jupyter Notebook. I'm using Windows 10. I can delete the cell but it looks like it is still going in the background. It won't run any other code on that page.

  • @muhammadshahnawaz3679
    @muhammadshahnawaz3679 3 роки тому

    hi
    I have a question about range() function.
    can we do something like this range(i+1, len(list_a))
    i am getting error with this.

  • @uti_s1471
    @uti_s1471 Рік тому

    Ctrl + C do not work for me, stopping the infinite loop on a PC. Why? Thanks for the great tutorials. And how did you mark out and comment out multiple lines at once? Cheers

  • @SURYAPARIDA-r7i
    @SURYAPARIDA-r7i Місяць тому

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

  • @brianlandes1
    @brianlandes1 2 роки тому

    Why use the 'continue' statement if I can just write something like:
    for num in nums:
    if num == 3:
    print('Found!')
    else:
    print(num)
    I'm not seeing any clear utility for something like continue.

  • @behindthescene4406
    @behindthescene4406 4 роки тому

    I don't understand how it was 1 a
    I was hopping for 1 abc
    2 abc......bcz as abc is one string plz someone help

  • @keerthana7353
    @keerthana7353 9 місяців тому

    THis is so short and sweet and to the point I don't understand why we have college professors teaching us shit. We just need you guys to replace them... I pay so much money to a university that has really horrible professors who can't teach for shit.

  • @tiredsentinel1724
    @tiredsentinel1724 11 місяців тому

    One request. Next time, teach the ‘CtrlC’ stop BEFORE you teach an infinite loop function 😂.

  • @harveytiven5923
    @harveytiven5923 Рік тому

    I'd like to know real-life examples of applications of loops, trying to visualize some of these lessons as I go. Thanks

  • @lordnima844
    @lordnima844 Рік тому

    9:17 thanks for all of these amazing videos
    I have an issue why ctrl+c doesn't cancel the infinite loop
    I use VS code on windows 10

  • @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

  • @AdityaLakshmipathy
    @AdityaLakshmipathy 4 роки тому

    Hi Corey, Thank you for all the videos. In Python (Visual Studio Code) it there a shortcut key to run the Python code in the terminal. I use a Mac.

  • @bhuvanmanocha903
    @bhuvanmanocha903 4 роки тому +1

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

  • @ubuntujackson9133
    @ubuntujackson9133 4 роки тому

    What is the field where you print the stuff? I do exactly like you do but I just get an error that I can't even copy and paste to show what it is eventhough it's text.

  • @nehat786
    @nehat786 6 років тому +2

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

  • @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.

  • @felixquashigah-fiadjoe9366
    @felixquashigah-fiadjoe9366 3 роки тому

    could you please help me populate an empty list with numbers from 1-100 and perform a modulus operation on each number in the print out?

  • @rhythm5411
    @rhythm5411 3 роки тому

    How would I go about writing a loop if I want my code to read 30 lines of values, use those to do a calculation and then read the next 30 line and so forth until the whole file is read?