def area_or_perimeter(l , w):
    if w-l is 0:
        return (l*w)
    else:
        return 2*l + 2*w
    
477cf5c21ca28865410e25f09ae3e9ceb5d3f182
<mask token>

def area_or_perimeter(l, w):
    if w - l is 0:
        return l * w
    else:
        return 2 * l + 2 * w

def area_or_perimeter(l , w):
    if w-l is 0:
        return (l*w)
    else:
        return 2*l + 2*w
    