File:
Class:
Method:
"""Implements a Square shape.
This file contains code for the Square shape class.
Author: Russell Feldhausen russfeld@ksu.edu
Version: 0.1
"""
class Square:
"""Represents a Square shape.
This class represents a square,
storing the side length only.
Attributes:
length: the side length of the square
"""
def area_difference(circle: Circle) -> float:
"""Calculates the area of the square not in the circle.
This method will place the center of the circle at the
center of the square and compute the difference in area.
Args:
circle: a circle shape
Returns:
the difference in area as a float
Raises:
ValueError: if the circle is larger than the square
"""