human
I am working on the file "02-basics/09-OOP.ipynb".
The first task is:
Example
Can you write Python code for it?
 ... What is a the Python code you requested?
assistant
#Here is the Python code you requested.

class Stack:
     def __init__(self):
         self.items = []

     def put(self, item):
         self.items.append(item)

     def get(self):
         return self.items.pop()

     def size(self):
         return len(self.items)

class Queue:
    def __init__(self):
        self.items = []

    def put(self, item):
        self.items.insert(0,item)

    def get(self):
        return self.items.pop()

    def size(self):
        return len(self.items)