Created
April 21, 2021 19:41
-
-
Save Peters8090/82b80f6100ed48b95ba31c435a03d431 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
def multipleArray(num, length): | |
return list(map(lambda x: int(x[1]) ** (x[0] + 1), enumerate(str(num) * length))) | |
print(multipleArray(5, 3)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment