Solution Review: Devise a Shape

The solution to the 'Devise a Shape' challenge.

We'll cover the following

Explanation

Before jumping straight to the code, let’s proceed bit by bit.

To initialize a shape, whether a Square object or a Rectangle object, we need a constructor for initialization (__init__()) in both classes. Here’s the snippet:

Get hands-on with 1400+ tech skills courses.