What is the output of the following code ?
class Foo: X = 10 def hello(self): self.X = 20 print(Foo.X)
20
10
None
Error
"X" is a class attribute can be called using class name
Comment here: