Question

Given the following code what would the output on the final line be?

# implementing Queue using List:
q=[ ]
q.append(10)
q.append(100)
q.append(1000)
q.append(100000)
print("Initial Queue is:",q)
print(q.pop(0))
print(q.pop(0))
print(q.pop(0))
print("After Removing elements:",q)

Answers

There are no human answers yet.
There are no AI answers yet. The ability to request AI answers is coming soon!

Related Questions