liste ve içlem liste

This commit is contained in:
Mert Gör ☭ 2023-06-11 19:17:10 +03:00
parent 647e590739
commit 688cc0aadc
No known key found for this signature in database
GPG Key ID: 2100A876D55B39B9
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,4 @@
a = [[0, 0, 0, 0, 0] for i in range(10)]
print(a)
a[0][1] = 100
print(a)

View File

@ -0,0 +1,4 @@
a = [[0, 0, 0, 0, 0]] * 10
print(a)
a[0][1] = 100
print(a)