class type

This commit is contained in:
Mert Gör 🇹🇷 2023-06-25 16:55:07 +03:00
parent 1a0db0282c
commit 4d34b769cd
No known key found for this signature in database
GPG key ID: 2100A876D55B39B9

7
python-temel/class.3.py Normal file
View file

@ -0,0 +1,7 @@
class Sample:
def foo(self):
print('foo')
s = Sample()
print(type(Sample))
print(type(s))