Skip to content
Snippets Groups Projects
Commit af104f49 authored by nilsl99's avatar nilsl99
Browse files

Fixed StackList.__str__

parent 95b429a1
No related branches found
No related tags found
No related merge requests found
......@@ -50,6 +50,9 @@ class StackList:
element.next = ListElement(value)
def __str__(self):
if self.isEmpty():
return "StackList()"
return_string = ""
element = self.first_element
while element.next is not None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment