Skip to content

Instantly share code, notes, and snippets.

@Peters8090
Created April 21, 2021 19:41
Show Gist options
  • Save Peters8090/82b80f6100ed48b95ba31c435a03d431 to your computer and use it in GitHub Desktop.
Save Peters8090/82b80f6100ed48b95ba31c435a03d431 to your computer and use it in GitHub Desktop.
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