Medium
Must Be Overridden
class Shape has area() that raises NotImplementedError. Square(side) overrides it, and Blob does not. Read lines square S or blob until END; print each area, or Blob has no area when the error is raised.Input
Lines, then END.
Output
Lines.
Sample 1
Input
square 3 blob END
Output
9 Blob has no area
Sample 2
Input
blob END
Output
Blob has no area
Output appears here