From afdf73b7725efa23ea5011d82b251aaf13fb9585 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mert=20G=C3=B6r?= Date: Sun, 11 Jun 2023 16:00:27 +0300 Subject: [PATCH] =?UTF-8?q?=C3=A7ift=20indisli=20elamanlar=C4=B1ndan=20yen?= =?UTF-8?q?i=20bir=20listeyi=20i=C3=A7lem=20yoluyla=20elde=20etmek?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python-temel/cift.indis.yeni.py | 4 ++++ python-temel/cift.indis.yeni.py~ | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 python-temel/cift.indis.yeni.py create mode 100644 python-temel/cift.indis.yeni.py~ diff --git a/python-temel/cift.indis.yeni.py b/python-temel/cift.indis.yeni.py new file mode 100644 index 0000000..6e59b2a --- /dev/null +++ b/python-temel/cift.indis.yeni.py @@ -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) diff --git a/python-temel/cift.indis.yeni.py~ b/python-temel/cift.indis.yeni.py~ new file mode 100644 index 0000000..a123c32 --- /dev/null +++ b/python-temel/cift.indis.yeni.py~ @@ -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)