matris 20'den büyük ya da 20'ye eşit olan elemanlardan bir liste
This commit is contained in:
parent
f791a0283c
commit
3ad5d7c117
2 changed files with 7 additions and 0 deletions
4
python-temel/matris.20.py
Normal file
4
python-temel/matris.20.py
Normal 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)
|
3
python-temel/matris.20.py~
Normal file
3
python-temel/matris.20.py~
Normal 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)
|
Loading…
Reference in a new issue