Python Tutorial 13: Understanding Python While Loops

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 understand and use python while loops. I do not assume you are an expert, so these lessons are designed for complete beginners.
#Python
#Lessons
#Programming
Рекомендации по теме
Комментарии
Автор

I did watch your Ardiuno, Raspberry Pi, and little bit AI on Jetson series...
Being Electronics student everything what you are doing is helping me a lot...
Even I did my college project using your series..."Attendance system using face recognition on Raspberry yor are lifting us up..
Huge respect towards you sir
Thanks a lot....🤩

chethantb
Автор

I AM FINALLY LEGEND after a losing streak! Having so much fun with these lessons.

kck.Schrodinger
Автор

Ugrades = int(input('How Many Grades You Have? '))
gradeslist = []
g = 0
p = 0
while g in range(0, Ugrades, 1):
grades = float(input("please Enter Your grades Don't Be Shy : "))
g += 1
gradeslist.append(grades)
print('')
print('You grades Are: ')
print('')
while p in range(0, Ugrades, 1):
print(gradeslist[p])
p += 1
I used another variable (p) to store and print the grades I was mad that It didn't work thou I used the increment But when I saw you work I knew my wrong.
Thanks for the Lessons Mr Paul

yousraabdullah
Автор

I am legend, despite this homework was easier than other ones.

pauivorra
Автор

I AM A LEGEND
I got this one correct & yeah it was a bit easy.Got to mention that your homework assignments are really helpful.
Thank you for sharing your knowledge with us

amayaphotos
Автор

I'm legend. It took me 2 minutes to figure out this homework, probably because previous one took me 6 hours, but I couldn't even imagine that i'm folding up like a cheap Walmart chair!.
Thank You unce Paul for this incredible new tutorial series!

dawidstawowy
Автор

Got it, Paul, I am legend. Enjoyed the lesson. Looking forward to reading and writing files. Have a great week.

opalprestonshirley
Автор

I just wanted to add, I am really enjoying these lessons, with the tools you have given so far, I wrote my own little program to collect and sort two data sets for a string input and then an associated value in no particular order until the user types exit, then it sorts the data by the value and re-orders both data sets to finally print the string against its value from highest to lowest. Of course I made mistakes but the joy of fixing these and seeing the program do what you wanted it to do is great.

johnplowright
Автор

Legend. I was able to do the assignment in about ten minutes once I got past the initial "...how do I make this work" brainstorming phase.

ModernDayWanderlust
Автор

Hello Paul,
I completed the while homework, this one was easier than the last one, for which I needed hours. I could do the while homework in minutes. Thanks for your marvellous lessons.

MrElFRanz
Автор

I got my while loop to print the index from the beginning to the end of the array, and then print from the end back to the beginning! Counting backward requires a bit of manipulating the variables and changing the addition operator, but it was pretty simple. Another awesome lesson Paul!

FF
Автор

GOT IT, AFTER ALMOST 2 HOURS 🤭
Tgrades=float(input('How many grades do you have? '))
H=[]
k=1
while k<=Tgrades:
grade=int(input('Please enter your grade: '))
k=k+1
H.append(grade)
print('Your grades are: ')
print(H)
f=-1
while f<Tgrades-1:
f=f+1
print(H[f])

mngwtry
Автор

I AM LEGEND! it seemed easier than the for exercises. Looking forward to catching up to current lesson. Again, thanks for the most excellent courses, Paul.

cbrombaugh
Автор

I managed to do this assignment, I was preety weary at first seeing as I orginally struggled on for loops initially however now I feel like I have a grasp on the concept before moving on to this lesson so I understood it preety easily when boiled down it is just a different way to format for loop (but in my opinion easier) one thing I did learn though (mostly from me never doing it is knowing you could re apply a variable (in this case j) mid code in my code I just made a new variable for the 2nd while loop

really enjoying this series thank you sir!

hojosa
Автор

Very knowledgeable and inspirational lecture... Thank you sir and waiting for the next week.

pralaymajumdar
Автор

Paul's words are really understandable. Congratulations. Doing homework is very important. The code is not written without encountering the problem.

OzdemirCem
Автор

i used to hate programming before i started watching your tutorials...you really make programming fun

sudhanshupawar
Автор

Hi Paul, in my version of this coding I used i and j for each of the loops and set my i counter to start at 0 and the j counter to start at 1 in the appropriate parts of the code: it all worked well. Thanks for another interesting and informative tutorial.

alfredcalleja
Автор

I did the homework and debugged it on my own. Good lesson as always, thanks.

mohsenr
Автор

​really appreciate your video one more amazing lesson
Thanks Paul

tejkhanvilkar