9 lines
181 B
Python
9 lines
181 B
Python
|
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}")
|