Can someone please explain why I am getting none as return, I am updating the dictionary and b is dependent to function call so it should update too right?. Or is it referencing to previous one?
d = dict()
def rec():
    b = d.get('A')
    print('b is ',b)
    if b:
        print('here')
        return b
    else:
        d['A'] = {'yes':1}
        rec()
print('return is ',rec())
 
     
    