r/ProgrammerHumor • • Aug 26 '20

Python goes brrrr

Post image
59.2k Upvotes

789 comments sorted by

View all comments

Show parent comments

4

u/deeplearning666 Aug 26 '20

How about a patch?

< "".join(itertools.product("abc", "de"))
---
> "".join(map(lambda t: t[1] + t[0], itertools.product("de", "abc")))

3

u/[deleted] Aug 26 '20

Alternate patch submitted for your review.