Skip to content

Instantly share code, notes, and snippets.

@calthoff
Last active March 27, 2018 00:49
Show Gist options
  • Select an option

  • Save calthoff/b40509a7e4f4ddc12febab949df1eeb8 to your computer and use it in GitHub Desktop.

Select an option

Save calthoff/b40509a7e4f4ddc12febab949df1eeb8 to your computer and use it in GitHub Desktop.
class Rectangle():
recs = []
def __init__(self, w, l):
self.width = w
self.len = l
self.recs.append((self.width, self.len))
def print_size(self):
print("""{} by {}""".format(self.width, self.len))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment