DEV Community

Discussion on: Daily Challenge #281 - Area or Perimeter

Collapse
gagandureja profile image
Gagan
def area_or_perimeter(l,w):
    return l*w if l==w else 2*(l+w)