Program - Insert a number at the beginning of the queue
Topic: Program - 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
Solution
q = [1,2,3,4] q.insert(0,5) print(f"Revised List:{q}")