Skip to content

Instantly share code, notes, and snippets.

@anishLearnsToCode
Created August 2, 2021 14:44
Show Gist options
  • Save anishLearnsToCode/6791ee0aff1e6879e91cc6f585809614 to your computer and use it in GitHub Desktop.
Save anishLearnsToCode/6791ee0aff1e6879e91cc6f585809614 to your computer and use it in GitHub Desktop.
Creating a 2D Array in 🐍 Python
array = [[0 for i in range(columns)] for j in range(rows)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment