I want to ask a question.
I made a ClassName.py
and it has 'list Variable'
like number = []
.
And I push variables at list and make class objects which is list too in main function.
But now I am faced with a problem.
For example I make a object1
and it has list variable. After make object2
it has same variable object1
. (object1
-> list Variable = [1,2,3,4,5]
, object2
-> list Variable = [1,2,3,4,5]
)
More detailed, I want to add a '6'
to object2
list. If I add '6'
at object2
list the object1
list has added '6'
too.
I don't know how I can solve the problem.
Plz. Give an advice