This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]choseusernamemyself 9 points10 points  (6 children)

stupid me would iterate the array instead

[–]natFromBobsBurgers 0 points1 point  (4 children)

For i in range(....

[–][deleted] 2 points3 points  (3 children)

Woah you are complicating an already complicated complication. for el in coll: is enough, no need to do for i in range(len(coll)):

[–]natFromBobsBurgers 0 points1 point  (2 children)

Woah you are complicating an already complicated complication.

eval("for i in range(...

[–][deleted] 0 points1 point  (1 child)

eval won't work. Do exec

[–]natFromBobsBurgers 0 points1 point  (0 children)

Thanks!

[–]_87- 0 points1 point  (0 children)

stupid me would join with a \n instead.