Mar-01-2020, 06:16 PM
if you do it like this, then it doesn't make sense to have lst argument at all - you can remove it
class testobj: def __init__(tst): tst.lst = []by the way, convention is to use
self
. It's OK to use something different like tst
but it make it more difficult for other developers to read
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs