Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Edit] Python: deque #6484

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

mamtawardhani
Copy link
Collaborator

Description

[Edit] Python: deque

Issue Solved

Closes #6447

Type of Change

  • Editing an existing entry (fixing a typo, bug, issues, etc)

Checklist

  • All writings are my own.
  • My entry follows the Codecademy Docs style guide.
  • My changes generate no new warnings.
  • I have performed a self-review of my own writing and code.
  • I have checked my entry and corrected any misspellings.
  • I have made corresponding changes to the documentation if needed.
  • I have confirmed my changes are not being pushed from my forked main branch.
  • I have confirmed that I'm pushing from a new branch named after the changes I'm making.
  • I have linked any issues that are relevant to this PR in the Issues Solved section.

@mamtawardhani mamtawardhani added enhancement New feature or request python Python entries status: under review Issue or PR is currently being reviewed labels Apr 5, 2025

<details>
<summary>4. Is deque FIFO or LIFO in Python?</summary>
<p>A deque is neither inherently FIFO nor LIFO, it's a flexible data structure that can be used to implement both patterns. Use `append()` and `popleft()` for FIFO (queue) behavior, or use `append()` and `pop()` for LIFO (stack) behavior.</p>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have backlinks for append , pop left, LIFO and FIFO?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Edit] Python: deque
2 participants