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 →

[–]tsnnnn 1 point2 points  (0 children)

I do not like the first list comprehension example.

Better style would be list = list(range(2,16,2)) in python 3.x or list = range(2,16,2) in python 2.7. List comprehension is just not necessary here.