Created
September 14, 2020 15:08
-
-
Save BetterProgramming/ae7520645e8835c76ad052820f862f3f to your computer and use it in GitHub Desktop.
This file contains 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
import itertools | |
num = itertools.starmap(lambda x, y: x + y, [(0, 1), (1, 2), (2, 3)]) | |
for i in num: | |
print(i) | |
''' | |
Output: | |
1 | |
3 | |
5 | |
''' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment