class variables is shared across all instances in python?

I started coding in python a week ago, it is my mistake i started coding using oops,classes and objects that soon. I assumed my C++ proficiency will help…. I got bit by the following code class A: var=0 list=[] def __init__(self): pass Here to my surprise, var and list are kinda global variable, it is … Read more