liste 10 adet

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

View File

@ -0,0 +1,3 @@
a = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
b = [[y for y in x if y % 2 == 0] for x in a]
print(b)

View File

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