Let's Learn Python - Basics #4 of 8 - Loops

preview_player
Показать описание
This week, I cover the FOR and WHILE loops, along with the RANGE() function, and the keywords BREAK and CONTINUE.

Please leave me a comment or question below! Like and Subscribe to show your support! :D

DOWNLOAD PYTHON:

=========================================

Music by Juto: Link Coming Soon!

=========================================
--- SUPER TUTORIAL LIST!!! ---

PLAYLISTS

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

*sigh*   I seriously wish I had found your videos when I started learning. These are awesome.

Enkineferous
Автор

I just wanna say, i greatly appreciate the work you done for these videos, especially going through and correcting them with annotations for the newer versions of python. Thank you.

supersegafan
Автор

wow your videos are so good. Ive been trying to start learning python for a year now but your videos are definitely the easiest way. I love it, thanks, and good job.

jonahstiles
Автор

For what its worth mate, your videos should have more "likes" than the Miley Cyrus twerk videos.  Sincerely, a Nuclear Engineer

johnspain
Автор

Holy smokes. Your instructions are so clear and you are so merry! Its a rush for me to watch your videos!! Thanks for doing this. Subbed!!

sdndn
Автор

Yes, I have! I wish you the best of luck on your quest!

You seem like a smart individual, you can totally do it! :D

Anchor_Rainbow
Автор

Thanks for all your hard work Trevor. Your videos are super clear. I am glad you went back and integrated Python 3 commands into your videos. This is making life much easier for me. Thanks!

thHorseMan
Автор

>>> primes = []
>>> for i in range(2, 100):
for x in range(2, i):
if (i % x == 0):
break
else:
primes.append(i)
print(primes)
the spam it gave

Gigachoungus
Автор

You've done it again Trevor! You're the biggest guy I know! ^^

hopew
Автор

hey awesome videos! just a quick question, sorry if it has been answered before... why can't I see the equal signs and + signs ?

normandinf
Автор

final exemple one: print need one indent to work properly. thanks a lot Trevor for this amazing teaching !! Wish i could do the same later on.

stanb
Автор

Trevor, your class is wonderful! I enjoy watching and practicing with it. Thank you so much!

MsNike
Автор

8:32 @ the "fiboSeq" example: If you follow the example and write "a, b = b, a + b" followed by "print fiboSeq" you get a SyntaxError. The reason is, you are still in the "while" loop. So when you write "a, b = b, a + b", hit enter twice, to get the ">>>" prompt and THEN you write "print fiboSeq". (This applies to Linux with Python 2.7.)

ikemkrueger
Автор

Very Simple Program I learn from your tutorials. Thanks :)

  
x = 1
while(x == 1):
    marks = input('Please Enter your marks here=')
    if(marks < 50):
        print 'Sorry you are fail'
    elif(marks > 50) and (marks < 75):
        print 'pass with B+ Grade'
    else:
        print 'you pass with A++'
    x = input('Enter 1 to Recheck or 0 To Exit=')

avisiviafun
Автор

You probably noticed long ago, but in the final example, you need to set factorial to 1 and avoid i from using the value 0.

Thanks for the lessons and exercices! great content!

arthuroudard
Автор

Thank you so much for posting these videos, I chose GCSE Computer Science and this will help me a lot. I just can't thank you enough, keep up the good work!

kingofdead
Автор

Hi Trevor, thanks for your great videos.
Would you please let us know how you clear the shell?

ianzari
Автор

Hi Trevor, these are some of the finest tutorials on Python. Just wanted to know one thing on this:
How do we mimic the for loops as in other languages like C:
Eg: In C, for(i=0;i<=x;i++) { <body> }
How can this be achieved in Python?

prakul
Автор

Great videos, great clearity and info, Ive been bouncing around tutorial videos until I stumbled into yours and I settled here! lol

amandabiggers
Автор

Nice vids, really appreciate it, how do you clear your idle window, to make it look fresh. i always close it and reopen it for each lesson, thanks

calpolypom