Created
September 22, 2026 16:33
-
-
Save koi8-r/a2ffa01ecffdc3cf5083f79bf9d31337 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| given = "abcdef" | |
| it = iter(given) | |
| res = [(a + b) for a,b in zip(it, it)] | |
| assert ['ab', 'cd', 'ef'] == "".join(res) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment