Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Albert Vathapally](https://secure.gravatar.com/avatar/f6d640348bd368dbec0eaab083df37d7?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Albert Vathapally
575 PointsWhat does it mean to iderate? Im having trouble understanding
This was gone over in the beginning of the video im having trouble understanding
2 Answers
![Steven Parker](https://uploads.teamtreehouse.com/production/profile-photos/969492/micro_tool_chess_set_2.jpg)
Steven Parker
230,688 Points"Iterate" is a just a fancy word for "repeat". It's commonly used to describe the action of a loop in code, where one or more steps are done over and over several times.
It's also used in reference to whatever controls how many times the loop will repeat (often a list of items, the loop repeats once for each of them).
![Daniel Turato](https://uploads.teamtreehouse.com/production/profile-photos/3811982/micro_tumblr_nod4hsg1x11rpwm80o1_250.jpg)
Daniel Turato
Java Web Development Techdegree Graduate 30,124 PointsIteration in python is where you want to run a piece of code until a certain condition is completed. There are two ways of doing this in python, for & while loops. So here's a few examples of loops:
This code below will loop each time until x is greater than 5.
x = 0
while (x < 5):
print(x)
x = x + 1
This code below does exactly the same as above but in a for loop
for x in range(6):
print(x)
If you have questions you can ask me below or you can look at the documentation here - https://python101.pythonlibrary.org/chapter5_loops.html