Python exercise
Create a shape class, and sub-classes which represent different geometric shapes, such as rectangles, circles and triangles. Give these classes methods to perform standard geometric calculations such as finding the area and perimeter of a shape.