I'm work with python and I need a function in class like
class asas(object):
def b(self):
self.name = "Berkhan"
a = asas()
a.b().name
and I check this module
Traceback (most recent call last):
File "C:\Users\Berkhan Berkdemir\Desktop\new 1.py", line 5, in <module>
a.b().name
AttributeError: 'NoneType' object has no attribute 'name'
What should I do?