this post was submitted on 06 Feb 2025
21 points (100.0% liked)
CSCareerQuestions
1047 readers
43 users here now
A community to ask questions about the tech industry!
Rules/Guidelines
- Follow the programming.dev site rules
- Please only post questions here, not articles to avoid the discussion being about the article instead of the question
Related Communities
- [email protected] - a general programming community
- [email protected] - general question community
- [email protected] - for questions targeted towards experienced developers
Credits
Icon base by Skoll under CC BY 3.0 with modifications to add a gradient
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
the difference between list and dict is basically ordered list vs key value pair. the advantage of dict is that key value pair, finding or changing something (using its key) is big O of (1). its generally important for accessing data in a large pool of data quickly (as O(1) < O(n)
its one of things where its a fundamental concept question check that one would usually learn in school