0

I want to access the value of val in child class

class a(object):
    val=[]
    def func1():
        val=['cat','dog']
        print(val)

class b(a):
    #how to get the value of variable val   

0 Answers0