Computer Science, asked by mohapatrasthitaprajn, 4 months ago

write and function in python, INS_QUEUE (Arr,data)DEL_QUEUE (Arr) performing insertion and deletation operation in queue.Arr the list used implementing queue data is the value to be inserted​

Answers

Answered by soumyadeepdaspatra
3

Answer:

def INSERTQ(Arr):

data=int(input("enter data to be inserted: "))

Arr.append(data)

def DELETEQ(Arr):

if (Arr==[]):

print( "Queue empty")

else:

print ("Deleted element is: ",Arr[0])

del(Arr[0])

Similar questions