user
Provide example code for the following data structure: stack.

Input: <none>

Output:
assistant
Here is an example of a stack data structure implemented in Python:

class Stack:
    def __init__(self):
        self.items = []
 
    def push(self, item):
        self.items.append(item)
 
    def pop(self):
        return self.items.pop()
 
    def is_empty(self):
        return self.items == []