From 7998912b9e027dff26faf8616cfd87ac8c10472f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mert=20G=C3=B6r?= Date: Sun, 25 Jun 2023 16:04:47 +0300 Subject: [PATCH] class other 2 --- python-temel/class.sample.other.2.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 python-temel/class.sample.other.2.py diff --git a/python-temel/class.sample.other.2.py b/python-temel/class.sample.other.2.py new file mode 100644 index 0000000..84c1cc4 --- /dev/null +++ b/python-temel/class.sample.other.2.py @@ -0,0 +1,6 @@ +class Sample: + x = 10 + +s = Sample() +print(s.x) # 10 +print(Sample.x) # 10