So I was doing this:
It was initially pretty frustrating until I figured it out because it bothered me that whomever was using my class would not be able to add on to lists, for example, right away. They would have to create them first and then add on which I thought would just be tedious. Needless to say, when I figured that out I was both excited and felt like an idiot.
Other than that little hiccup the lab went well. I think I got the quiz question right, however I think I could improve on my docstrings. My description was a little long and clunky.


You also don't need to bring in variables as parameters if you're just going to initialize them in the constructor:
ReplyDeletedef __init__ (self):
self.first = []
self.second = ''
This comment has been removed by the author.
ReplyDeleteThanks Brian! Yeah I figured that out during my lab last week but forgot to update, but yeah very useful
ReplyDelete