Created
May 24, 2011 20:53
-
-
Save gceylan/989661 to your computer and use it in GitHub Desktop.
listeleme
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
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