Last active
March 27, 2018 00:49
-
-
Save calthoff/b40509a7e4f4ddc12febab949df1eeb8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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