Create a class in Python representing a geometric shape with methods to calculate its area and perimeter.

Posted Date: