Created
September 14, 2020 15:07
-
-
Save BetterProgramming/58b9c2e781ac6ecb86a12a2320859c8b 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(pow,[(0,2),(1,2),(2,2)]) | |
print (num) | |
#Output:<itertools.starmap object at 0x00C8E4D8>#Converting starmap object to list by using list() constructor. | |
print (list(num)) | |
#Output:[0, 1, 4] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment