I think that the task was just copied from C# and the unitests are not yet fixed for it.
As the task is using on stacks and in C# stacks are printed in reverse the expected output is wrong.
Fixed after watching the video from in class. And the problem was in the exact same place as I was thinking :D
I needed to add
def str(self):
return str(self.__data[::-1]
link http://bit.ly/3ccf33P
I think that the task was just copied from C# and the unitests are not yet fixed for it. As the task is using on stacks and in C# stacks are printed in reverse the expected output is wrong.