Create Easy Queues with Python | Data Structures #coding #software #java #python #developer

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

queue=[]
def enqueue(items):
queue.append(items)
def dequeue(items):
removing=queue[0]
for I in range(0, len(queue)-1):
queue[I]==queue[I+1]

return removing
enqueue(1)
enqueue(2)
enqueue(3)
enqueue(4)
enqueue(5)
print(queue)
dequeue(6)
print(queue)

godzillagamingmonsters