CBSE Class 12 Computer Science
Question 45 of 63
Data Structures in Python — Question 19
Back to all questionsAn algorithm to insert element into Queue as a list is as follows:
- START
- Queue = list() or Queue = [] #Initialize a Queue using list
- element = input("Enter the element to be added to the Queue: ")
- Queue.append(element) #Adding element into the list Queue
- STOP