From 307a27b9a2af5abf365054f47f3381e04ee3f8e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mert=20G=C3=B6r?= Date: Tue, 13 Jun 2023 14:41:52 +0300 Subject: [PATCH] zip plot --- python-temel/zip.unzip.4.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 python-temel/zip.unzip.4.py diff --git a/python-temel/zip.unzip.4.py b/python-temel/zip.unzip.4.py new file mode 100644 index 0000000..d881776 --- /dev/null +++ b/python-temel/zip.unzip.4.py @@ -0,0 +1,8 @@ +points = [(-2, 4), (-1, 1), (0, 0), (1, 1), (2, 4)] + +x, y = zip(*points) + +import matplotlib.pyplot as plt + +plt.plot(x, y) +plt.show()