Skip to content

Instantly share code, notes, and snippets.

@gceylan
Created May 24, 2011 20:53
Show Gist options
  • Save gceylan/989661 to your computer and use it in GitHub Desktop.
Save gceylan/989661 to your computer and use it in GitHub Desktop.
listeleme
def liste_matris(m=matris, boyut=5):
matris = {(0, 3): 1, (2, 1): 2, (4, 3): 3}
matris2 = []
n = 0
while n != boyut:
matris2.append([0] * boyut)
n += 1
for tup in matris:
matris2[tup[0]][tup[1]] = matris[tup]
return matris2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment