Pythons for loop iteration

Sdílet
Vložit
  • čas přidán 13. 09. 2024
  • Describes Python for loop
    Previous video on the range function is at:
    • Pythons range function

Komentáře • 25

  • @samizabadneh885
    @samizabadneh885 Před rokem +1

    Best Python coding explanation I found on youtube thus far

    • @johnphilipjones
      @johnphilipjones  Před rokem

      Thank you for your generous comment it is appreciated.
      Best wishes
      Phil

  • @ronaldjohnson4470
    @ronaldjohnson4470 Před 5 lety +7

    You are the best. You take the time to really explain the concepts really well, thank you.

  • @jenniferchapman4895
    @jenniferchapman4895 Před 7 lety +5

    Thank you for posting this! Extremely helpful.

  • @swallowedinthesea11
    @swallowedinthesea11 Před 6 lety +1

    Congratulations! You have made it to my Python Tutor list because your teaching is awesome. Only a select few make it. From Texas, happy holidays John!

    • @johnphilipjones
      @johnphilipjones  Před 7 měsíci +1

      Thank you for your positive feedback it is appreciated.
      Best wishes Phil

    • @swallowedinthesea11
      @swallowedinthesea11 Před 7 měsíci

      @@johnphilipjones You're very welcome!

  • @geraldcolyvas732
    @geraldcolyvas732 Před 4 lety

    Thank you so much Philip.
    These tutorials have really helped me to learn python the right way.. You are truly a blessing to many

    • @johnphilipjones
      @johnphilipjones  Před 4 lety

      Thank you for your positive feedback it is appreciated best wishes Phil

  • @tom120ali
    @tom120ali Před 7 lety +3

    Great video. Very informative and well made. Thanks very much!

  • @faizankhatri1089
    @faizankhatri1089 Před 6 lety +2

    No one can teach better than you.

  • @cyberguide_in
    @cyberguide_in Před 8 lety +1

    I appreciate your effort putting into these videos.
    Keep making more project based tutorials because they are very much interesting and engaging. And, at the end you have something to show off. You may like to consider making web development using Python.
    Thank you very much.

    • @johnphilipjones
      @johnphilipjones  Před 8 lety +2

      Thank you for your positive comments.
      Best wishes
      Phil
      (John Philip Jones)

    • @cyberguide_in
      @cyberguide_in Před 8 lety +1

      You certainly deserve them.
      Kind regards

  • @muhammet1905
    @muhammet1905 Před 8 lety +2

    awesome explication thank you alot John,

  • @thetheinthu5669
    @thetheinthu5669 Před 4 lety +1

    Thank Sir.

  • @alankottommannilthomsontho1035

    Great video, very well explained

  • @itsreason3238
    @itsreason3238 Před 4 lety +1

    Thank you so much!

  • @md.shorifulislam8366
    @md.shorifulislam8366 Před 6 lety +1

    Thanks

  • @MaxGoddur
    @MaxGoddur Před 7 lety

    Why doesn't the line print("The count value is: ", count) not generate an error if memory serves it was shown to be written as this :
    print("The count value is: ", (str(count))
    Something to do with combining string and integer on the same line as shown below?
    age=18
    if age >= 18:
    print("You are " + str(age) + " so collect your polling care")

    • @johnphilipjones
      @johnphilipjones  Před 7 lety

      A print function will convert an integer (e.g count) to a string to allow it to be printed to the VDU. Using the str function is often used to help document code i.e. indicates that the variable is not a string.

    • @MaxGoddur
      @MaxGoddur Před 7 lety

      Thank you

  • @mikijasar2594
    @mikijasar2594 Před 5 lety

    Dear sir Jones , can you say in this video (time saw 2.0 minutes) that count is actually a list and not a variable like you say here ?

    • @johnphilipjones
      @johnphilipjones  Před 5 lety +1

      I recommend that you think of the "for loop" as a "for each item". So 'count' then takes up the value of each item in the list in turn every time you iterate around the loop.
      Best wishes
      Phil