I have been working on assignment 1 on this week, and I spent a lot of time on it. For class TOAHModel, I made a small mistake in the method number_of_cheeses and it causes my string representation to represent cheeses on a stool, but with one less cheese. Fortunately, I managed to find out what the mistake is, I wrote some redundant codes that causes the the method number_of_cheeses to count one less cheese. Overall, by writing the code for class TOAHModel, I am now more familiar with attributes, which are instance variable that can be used throughout the class.
No comments:
Post a Comment