Skip to content

Instantly share code, notes, and snippets.

@brennanbrown
Created August 5, 2020 18:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brennanbrown/ca8279cc8cb9e09fb221554727ae42ab to your computer and use it in GitHub Desktop.
Save brennanbrown/ca8279cc8cb9e09fb221554727ae42ab to your computer and use it in GitHub Desktop.
class Shape:
def draw(self):
# Draw Code
from math import pi class Circle(Shape):
radius_cm = 4
Origin = (0, 0)
def draw(self)
circumference = pi * (self.radius_cm ** 2)
# Draw the circumference at origin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment