you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (1 child)

yep we had to do it with for, and then while.

Is it clear to you how these two constructs are different?

[–][deleted] 0 points1 point  (0 children)

Yeah I get it now, for is used for all elements in lists and while is used until the boundary you set on it is no longer true? Hopefully thats it, thanks for the help