Python Tutorial 9: Understanding For Loops in Python

preview_player
Показать описание
You guys can help me out over at Patreon, and that will help me keep my gear updated, and help me keep this quality content coming:

In this video we show step-by-step instructions on how to use and understand for loops in Python. I do not assume you are an expert, so these lessons are designed for complete beginners.
#Python
#Lessons
#Programming
Рекомендации по теме
Комментарии
Автор

i started watching his python videos a week ago and now i caught up with today's lecture . I am really excited please like his videos if you believe he is the best teacher

flmxinknght
Автор

Thank you Paul! I have watched all of your new Arduino tutorials, Nano tutorials, and Nx tutorials. You have inspired me to pursue and promote engineering and programming. I just received a grant to purchase 60 Arduino kits for my high School science courses. Your videos are making a positive impact on my students!

jeffcondis
Автор

Sir I am from India and want to pursue my career in coding and engineering, and you have helped me a lot in this little journey I have started since a month, and I would certainly say I AM LEGEND!!!
Thanks again a lot sir

ParthDubey-vd
Автор

I folded up like a cheap Walmart lawn chair. I tried append, extend, stack but I was trying to do it all with one loop instead of compounding it. I'll look at it some more until I completely understand it. Thank you!

chalmerditmars
Автор

Hope your channel continues to grow. Quality content from a an experienced professional. Love you work.

meshumi
Автор

I AM LEGEND, I did complete both homework assignments on my own. I really like how you explained the for loops with using range() which makes it a bit more familiar to what I'm used to. I've been reading and watching other tutorials to get more familiar with Python and still your lessons are the best.

ottawakravmagaacademy
Автор

I AM LEGEND! Great lesson Paul! I actually needed to create a for loop with the range function to calculate the numbers I wanted to try for the safe combination. It took some reading in a couple of my Python books but but I finally got it. The dial has 100 numbers and I wanted to try every third number. I learned quickly that I needed to go up to 101. Even trying every third number and three numbers in the combination that’s 35, 904 possible combinations. It took a considerable amount of time to build the database. I’m almost ready to give it a go.

warrenscorner
Автор

You are a legend :) But mainly because I was watching your Arduino tutorials lots and lots of times. Now I'm enjoying your Python lessons. Thank you!

gediminasgresevicius
Автор

This is best explanation of for loop in python. I went through a series of other tutorials didn't get everything. Thank you Paul.

sudharshanm.n
Автор

If before Python was complicated for me now, with THE BEST TEACHER it is quite easy👍

BalnurYeraly
Автор

Another great lesson to pass on to my students. Even though I studied Python in school, I have picked up many great things here. Thanks again for your dedicated work!

hughpatterson
Автор

I am legend! Although I didn't use "range" in the second for loop. My second for loop was "for eachGrade in Grades:" followed by "print(eachGrade)" Same difference obviously.

codecage
Автор

Great Python instruction, which is up to the high standard of your Arduino lessons. I am an old guy who has learned a lot from you over the last few years. I have been looking for a Python book to supplement your lessons. Recommendations? Even better would be a "dual language book" showing examples with Arduino code and Python code on opposite pages. I've searched for such a text without success.

floridian
Автор

Hi Paul thank you very much for what you doing i played a bit with this homework and managed to made this
numBal=int(input('How many baloons do you have? '))
Baloons=[]
for x in range(0, numBal, 1):#reads the input from user and creates list in Baloons
print('What colour is baloon number', x+1)#assign nuber to each baloon
baloon=input()
Baloons.append(baloon)
print('Congratulations You have', numBal, 'baloon')
for j in range(0, numBal, 1):#prints out the input given from user
print(Baloons[j], 'baloon is nuber', j+1)#assign nuber to each baloon

very happy and proud of myself thankfully to YOU PAUL. thanks

deyanvalkov
Автор

I love the way that you teach people, it is simple and easy to follow up. Thank you very much for the great work, papa. Please keep going on and take care of your self to make sure you will be always in good shape.

dule
Автор

I am a legend!!! I also used .append() but I wrote it like this:

for numGrade in range(1, num_grades, 1):
Input Grade: ')))
I guess both ways work!
Thank you so much for making these videos! They really help me learn Python.

steviekiss
Автор

0:00 Intro
1:27 What We Are Gonna learn Today
2:29 What a “for loop” is
4:25 Arrays Review
9:47 Here comes the for loop
15:29 Example With Numbers
20:35 Homework Assignment
22:36 Solution
34:41 More Homework

nicolasbassano
Автор

I also forgot the grades.append(grade) command
Great lesson Paul!

ricardobjorkeheim
Автор

"Who's your Huckleberry!?" 🤣 Great lesson, Paul!

mitchellkilpatrick
Автор

You really deserve more likes than what you have. Also, hope the moving is going well and we soon can enjoy your livestreams again.

Done the homework. I admit this one was harder than the last and I had to struggle a bit.

pauivorra