<filename>use list as a stack or array or queue.py
#as a list:
l=[3,4]
l+=[5,6]
print(l)

#as a stack:
#top input
#lifo
l.append(10)
print(l)
l.pop()#pops the ele that is inserted at last 

#as a queue
#fifo
l.insert(0,5)
l.pop()

<filename>use list as a stack or array or queue.py
#as a list:
l=[3,4]
l+=[5,6]
print(l)

#as a stack:
#top input
#lifo
l.append(10)
print(l)
l.pop()#pops the ele that is inserted at last 

#as a queue
#fifo
l.insert(0,5)
l.pop()

#as a list: #as a stack: #top input #lifo #pops the ele that is inserted at last #as a queue #fifo