Skip to content

Instantly share code, notes, and snippets.

@Peters8090
Created April 21, 2021 19:41
Show Gist options
  • Save Peters8090/cca835e6ed0a2f52b74a38922d3fe43a to your computer and use it in GitHub Desktop.
Save Peters8090/cca835e6ed0a2f52b74a38922d3fe43a to your computer and use it in GitHub Desktop.
def squareFromNumbers(n):
return list(map(lambda x: [n] * n, ([n] * n)))
print(squareFromNumbers(5))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment