Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Python
/
Python
Two instances initially read the class attribute status = "new". What does first.status =…
from Python
beginner
1 min
Two instances initially read the class attribute status = "new". What does first.status = "paid" change?
It creates or replaces an instance attribute on first; the other instance still reads "new"
It changes the class attribute for every instance
It raises AttributeError because class attributes are read-only
Check
Ask AI about this kata
Report an error
previous kata
Name the exception raised when a subclass still has an unimplemented abstract method and …
Fill in
next kata
For an ordinary instance method, what does Python do when code calls account.deposit(10)?
Quiz
A new version is available
Reload