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 Python Sequences!
You have completed Python Sequences!
Preview
Use basic Python for loops to iterate over your sequence data.
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
You might have heard this term before or
a similar term, iterable.
0:00
Basically, iterating means
looping over a sequence.
0:00
If something is iterable it
means it can be looped over.
0:03
All Python sequences are iterable,
they can all be looped over.
0:06
And that's what we'll be
talking about in this video,
0:09
basic iteration with for loops.
0:11
Basic iterating over Python sequences can
be done with what we call a for loop, or
0:14
more descriptively, a for in loop.
0:19
A for loop in Python is just a way to
perform an action on every element in
0:22
a sequence, one by one, in order.
0:26
The for loop will continue to loop or
0:28
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