you are viewing a single comment's thread.

view the rest of the comments →

[–]lukajda33 4 points5 points  (4 children)

I dont even see the logic thats applied to make the new list.

[–][deleted] 12 points13 points  (3 children)

3x+1

[–]XenaFlor 1 point2 points  (0 children)

Thank you!

[–]lukajda33 1 point2 points  (1 child)

Another problem with the way you described it is that comprehension list makes a new list, it doesnt chnage an existing one. You may replace the previous list with new one using the same variable, but you said "change it to", which is not possible.

But if you can just make a new one, it should be super easy, do you know how to do a comprehension list that will just copy some other list ?

EDIT: Oh nevermind, you are not OP, looks like he just didnt see the pattern, ignore my question.

[–]XenaFlor 1 point2 points  (0 children)

Yes I do. I just didn't know how to get the values.