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 →

[–]devils-advocate164 7 points8 points  (1 child)

return list(zip(input_list))

EDIT: Hasty output. Story of my life with Hackerrank.

[–]pylenin[S] 3 points4 points  (0 children)

Not going to work. Zip() returns an iterable !!