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
For an ordinary instance method, what does Python do when code calls account.deposit(10)?
from Python
beginner
1 min
For an ordinary instance method, what does Python do when code calls account.deposit(10)?
It binds account as the first argument and passes 10 as the next argument
It copies every account attribute into local variables
It calls the method without an instance because self is optional
Check
Ask AI about this kata
Report an error
previous kata
Two instances initially read the class attribute status = "new". What does first.status =…
Quiz
next kata
Name the magic method that defines an object’s developer-oriented representation
Fill in
A new version is available
Reload