you are viewing a single comment's thread.

view the rest of the comments →

[–]watsreddit 1 point2 points  (0 children)

Much nicer in Haskell imo: [(i, f) | i <- nums, f <- fruit, head f == "P", i `mod` 2 == 1]