Python 3 Programming Course 11: 'while' Loops

preview_player
Показать описание
A quick overview of 'while' loops in Python 3. They're useful for command-line apps and games where you want to run interactively and let the user decide when it's time to exit your program (among other things).

I'll also show you how to use 'input()', a super useful function that you can use to get input from a user (to make your programs interactive).

Рекомендации по теме
Комментарии
Автор

I'm getting a fucking recording studio... And then I can't understand the rest until you say I don't give a shit. :D

VanDerLaars
Автор

Your lessons are awesome. I am currently checking out several different tutorials and yours are by far the best... even better than Harvard CS50. How many more python videos are you gong to make? And what would you suggest I check out for python while you're recording more tutorials?

aptsafarinyc
Автор

LOL, did you get your recording studio yet? ;)

mrthomasfritz
Автор

I am at a point where i am thinking we can't break a loop with one keypress. input() holds the loop if you don't want to hold the loop ctrl+c is the only option i want to break a loop with esc or f1 without holding a loop for input. is it possible in python so far i think its not.

LetsLearn-geho
Автор

going through the loop after enter quit makes no sense (for me), it need a kind of break kriterium like a until loop that quits after kriterium reached. sorry if I jumped foreward an a until follows. Great series, I learned now a lot with the backround of another language (RPG) and the G is not for game.