çift indisli elamanlarından yeni bir listeyi içlem yoluyla elde etmek
This commit is contained in:
parent
54d9b5cfe7
commit
afdf73b772
2 changed files with 7 additions and 0 deletions
4
python-temel/cift.indis.yeni.py
Normal file
4
python-temel/cift.indis.yeni.py
Normal file
|
@ -0,0 +1,4 @@
|
|||
l = [10, 20, 30, 40, 50, 60, 70, 80, 90, 100]
|
||||
|
||||
result = [l[i] for i in range(0, len(l), 2)]
|
||||
print(result)
|
3
python-temel/cift.indis.yeni.py~
Normal file
3
python-temel/cift.indis.yeni.py~
Normal file
|
@ -0,0 +1,3 @@
|
|||
l = [10, 20, 30, 40, 50, 60, 70, 80, 90, 100]
|
||||
result = [l[i] for i in range(0, len(l), 2)]
|
||||
print(result)
|
Loading…
Reference in a new issue