matris 20'den büyük ya da 20'ye eşit olan elemanlardan bir liste

This commit is contained in:
Mert Gör 🇹🇷 2023-06-11 16:16:08 +03:00
parent f791a0283c
commit 3ad5d7c117
No known key found for this signature in database
GPG key ID: 2100A876D55B39B9
2 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1,4 @@
a = [[1, 20, 3], [21, 87, 8, 10], [5, 9, 6, 44]]
result = [y for x in a for y in x if y >= 20]
print(result)

View file

@ -0,0 +1,3 @@
a = [[1, 20, 3], [21, 87, 8, 10], [5, 9, 6, 44]]
result = [y for x in a for y in x if y >= 20]
print(result)