Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CodeWithHarry/The-Ultimate-Python-Course
/ show
Method
show
Chapter 11/05_class_methods.py:5–6 ·
view source on GitHub ↗
(cls)
Source
from the content-addressed store, hash-verified
3
4
@classmethod
5
def
show(cls):
6
print(f
"The class attribute of a is {cls.a}"
)
7
8
e = Employee()
9
e.a = 45
Callers
1
05_class_methods.py
File · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected