Write a program to Insert a number at the beginning of the queue


Topic: Write a program to Insert a number at the beginning of the queue

Solution

q = [1,2,3,4]
q.insert(0,5)
print(f"Revised List:{q}")



List all Python Programs