Hi! Can someone help figure this out, I’ve solved the challenge, but was using this was of initialization:
class School:
def _ _ init _ _(self, name, teams = []):
self.teams = teams
self.name = name
and not this one:
class School:
def _ _ init _ _(self, name):
self.teams = []
self.name = name
which is the suggested solution for it to work correctly, but when I’m using the default value there like in a first example, it gives an error in the results, and I don’t understand what’s in play here for that difference:
Thanks!
Type your question above this line.
Course: https://www.educative.io/collection/10370001/6201068373409792
Lesson: https://www.educative.io/collection/page/10370001/6201068373409792/6128617224404992