SimeonTsvetanov / Coding-Lessons

Coding Lessons
9 stars 2 forks source link

Python OOP - Inheritance - Lab - 05. Stack of Strings #1

Closed SimeonTsvetanov closed 4 years ago

SimeonTsvetanov commented 4 years ago

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.

SimeonTsvetanov commented 4 years ago

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]