Created
December 27, 2015 18:22
-
-
Save 607011/585b425e41a841d122a2 to your computer and use it in GitHub Desktop.
Generate 2D array of width w and height h
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
result = [a[:] for a in [[' '] * h] * w] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment