#Maze 2020 aufgaben stack

class Stack:
    def __init__(self):
        self.storage = list()

    def add(self, excercise):
        self.storage.append(excercise)

    def get(self):
        last = self.storage[-1]
        self.storage.pop()
        return last
    
    def __str__(self):
        return "Stackobject holding " + str(len(self.storage)) + " tasks."

    def __repr__(self):
        return "Stackobject holding " + str(len(self.storage)) + " tasks."

    def all(self):
        return self.storage

9f43ac240882b4becbb3ed7e2dbd8759bc5d8ea3
class Stack:

    def __init__(self):
        self.storage = list()

    def add(self, excercise):
        self.storage.append(excercise)
    <mask token>
    <mask token>
    <mask token>

    def all(self):
        return self.storage

class Stack:

    def __init__(self):
        self.storage = list()

    def add(self, excercise):
        self.storage.append(excercise)

    def get(self):
        last = self.storage[-1]
        self.storage.pop()
        return last
    <mask token>
    <mask token>

    def all(self):
        return self.storage

class Stack:

    def __init__(self):
        self.storage = list()

    def add(self, excercise):
        self.storage.append(excercise)

    def get(self):
        last = self.storage[-1]
        self.storage.pop()
        return last
    <mask token>

    def __repr__(self):
        return 'Stackobject holding ' + str(len(self.storage)) + ' tasks.'

    def all(self):
        return self.storage

class Stack:

    def __init__(self):
        self.storage = list()

    def add(self, excercise):
        self.storage.append(excercise)

    def get(self):
        last = self.storage[-1]
        self.storage.pop()
        return last

    def __str__(self):
        return 'Stackobject holding ' + str(len(self.storage)) + ' tasks.'

    def __repr__(self):
        return 'Stackobject holding ' + str(len(self.storage)) + ' tasks.'

    def all(self):
        return self.storage

#Maze 2020 aufgaben stack

class Stack:
    def __init__(self):
        self.storage = list()

    def add(self, excercise):
        self.storage.append(excercise)

    def get(self):
        last = self.storage[-1]
        self.storage.pop()
        return last
    
    def __str__(self):
        return "Stackobject holding " + str(len(self.storage)) + " tasks."

    def __repr__(self):
        return "Stackobject holding " + str(len(self.storage)) + " tasks."

    def all(self):
        return self.storage
