From 3ad5d7c117c328a240806cee05c7e469ae414430 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mert=20G=C3=B6r?= Date: Sun, 11 Jun 2023 16:16:08 +0300 Subject: [PATCH] =?UTF-8?q?matris=2020'den=20b=C3=BCy=C3=BCk=20ya=20da=202?= =?UTF-8?q?0'ye=20e=C5=9Fit=20olan=20elemanlardan=20bir=20liste?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python-temel/matris.20.py | 4 ++++ python-temel/matris.20.py~ | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 python-temel/matris.20.py create mode 100644 python-temel/matris.20.py~ diff --git a/python-temel/matris.20.py b/python-temel/matris.20.py new file mode 100644 index 0000000..d6dca01 --- /dev/null +++ b/python-temel/matris.20.py @@ -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) diff --git a/python-temel/matris.20.py~ b/python-temel/matris.20.py~ new file mode 100644 index 0000000..d88a63e --- /dev/null +++ b/python-temel/matris.20.py~ @@ -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)