Q:

Write a Python program to create a new deque with three items and iterate over the deques elements

0

Write a Python program to create a new deque with three items and iterate over the deques elements

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

from collections import deque
dq = deque('aeiou')
for element in dq:
   print(element)

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now