Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Practice Writing Loops in Python!
You have completed Practice Writing Loops in Python!
Preview
For loops are used to process steps one at a time, and you have a bit of control over how you step through each pass of a loop.
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
the while varieties,
can be a bit tricky to understand.
0:00
We're used to doing things
repetitively in real life, but
0:01
sometimes translating things from real
life to programming can be a bit weird.
0:03
So let's do a bit more
practice with loops so
0:07
they will hopefully make a bit more sense.
0:09
I have two files here in the workspace.
0:12
The first one is named for.py and
that is for practicing for loops.
0:14
And the second one, while.py,
is for practicing while loops.
0:18
So I'm gonna show you the problems for
each of them in the appropriate videos.
0:23
You can then stop the video and write
the code yourself to solve the problems.
0:27
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up