Skip to content

Instantly share code, notes, and snippets.

@marquesds
Created March 20, 2018 01:35
Show Gist options
  • Save marquesds/3933111bf0160075d6c1df7ef1eee813 to your computer and use it in GitHub Desktop.
Save marquesds/3933111bf0160075d6c1df7ef1eee813 to your computer and use it in GitHub Desktop.
def shapeArea(n):
if n == 1:
return n
return shapeArea(n - 1) + 4 * (n - 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment