Respuesta :
Answer:
The answer is given in attached document
Explanation:
The explanation is given in the attached document.
In this exercise we have to use the computer language knowledge in python to write the code as:
the code is in the attached image.
In a more easy way we have that the code will be:
In the above method queue() we have a dequeue D containing the numbers (1,2,3,4,5,6,7,8) as a list. pop() function is used to remove or pop the items from D in the same order they were pushed.
See more about python at brainly.com/question/25870717
