Skip to content

Lecture "Organising information: ordered structures", exercise 3 #14

@essepuntato

Description

@essepuntato

Consider to have a queue obtained by processing, one by one, the elements included in the list of the first exercise, i.e. my_queue = deque(["Draco", "Harry", "Hermione", "Ron", "Severus"]). Describe the status of my_queue after the execution of each of the following operations: my_queue.popleft(), my_queue.append("Voldemort"), my_queue.popleft().

Metadata

Metadata

Assignees

No one assigned

    Labels

    ExerciseThe exercises that are introduced in the lectures.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions