class other way

This commit is contained in:
Mert Gör ☭ 2023-06-25 16:02:33 +03:00
parent 8fe89e0d94
commit 38285afbab
No known key found for this signature in database
GPG Key ID: 2100A876D55B39B9
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
class Sample:
x = 10
print(Sample.x) # 10
Sample.x = 20
print(Sample.x) # 20