Python Collections: Lists, Tuples, Sets, and Dictionaries
Lists, tuples, sets, and dictionaries in Python: how each works, when to use it, and how comprehensions help.
GeeksArray is where software engineers learn from in-depth articles, share what they know, and build professional credibility.
In-depth articles and code-first tutorials across the stack. Read, comment, and share your own.
Explore articlesMulti-part series that take one topic from fundamentals to production — follow along at your own pace.
Browse the blogMost tutorials ship with a working sample project on GitHub, so you can clone it, run it, and make it yours.
Start reading
Lists, tuples, sets, and dictionaries in Python: how each works, when to use it, and how comprehensions help.
Work with Python strings: indexing and slicing, immutability, the most useful methods, f-strings, and formatting.
Understand variables, dynamic typing, numbers, booleans, None, type conversion, and Python's arithmetic operators.
Follow new articles, join the discussion in comments, and share what you build.