MCPcopy Index your code
hub / github.com/BeeBombshell/Python-DSA / Enqueue

Function Enqueue

DSA/Queue_using_list.py:3–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1# Implement Queue using List(Functions)
2q=[]
3def Enqueue():
4 if len(q)==size: # check wether the stack is full or not
5 print("Queue is Full!!!!")
6 else:
7 element=input("Enter the element:")
8 q.append(element)
9 print(element,"is added to the Queue!")
10def dequeue():
11 if not q:# or if len(stack)==0
12 print("Queue is Empty!!!")

Callers 1

displayFunction · 0.85

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected