ZadanieDomowe/Lab2/zad6.py

9 lines
181 B
Python
Raw Normal View History

2024-12-02 19:19:02 +01:00
queue = [1, 2, 3]
queue.append(4)
queue.append(5)
print(f"Queue after adding elements: {queue}")
queue.pop(0)
queue.pop(0)
print(f"Queue after removing elements: {queue}")