Skip to content

Instantly share code, notes, and snippets.

@ceoro9
Created August 5, 2019 22:45
Show Gist options
  • Save ceoro9/cca2a38cb35bb14a3843045740396945 to your computer and use it in GitHub Desktop.
Save ceoro9/cca2a38cb35bb14a3843045740396945 to your computer and use it in GitHub Desktop.
reduce(lambda prev_el, el: ''.join(prev_el) + ' ' + ''.join(el), zip_longest(*[iter(str(a)[::-1])] * 3, fillvalue=''))[::-1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment