p
y
c
h
a
l
l
e
n
g
e
r
Home
Intermediate Python
Classes and OOP I
Class vs Instance Attribute
Class vs Instance Attribute
Override a class attribute on one instance and observe that the class-level value stays unchanged.
Premium
reset
def greet(name): return f"Hello, {name}!" print(greet("Erik"))
Python
Setting up Python environment...
Output