a=[]
c= "y"
while(c=="y"):
print("1. INSERT")
print("2. DELETE")
print("1. DISPLAY")
choice=int(input("Enter Your
Choice:"))
if(choice==1):
b=input("Enter new number:")
a.append(b)
elif(choice==2):
if(a==[]):
print("Queue is Empty")
else:
print("Deleted value
is:",a[0])
a.pop(0)
elif(choice==3):
length=len(a)
for i in range(0,length):
print(a[i])
else:
print("Wrong Input")
c=input("Do you want to
continue")
Comments
Post a Comment