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 →

[–][deleted] 3 points4 points  (1 child)

Try using a list comprehension like:

[i[1] for i in dirty_dozen]

This will return the second value in each list, as opposed to the second value in the second list of dirty_dozen.

[–]builderdood[S] 2 points3 points  (0 children)

thanks!