What is the difference between a stack and a queue in Python?