Ram

Lesson 6 of 6

Lists & Dictionaries

Work with common Python collections.

Lists store ordered values, while dictionaries store key-value pairs.

Both structures appear frequently in APIs, configuration, automation and application logic.

Example

skills = ["Python", "React"]
profile = {"name": "Asha", "city": "Kathmandu"}
print(skills[0], profile["city"])

Practice challenge

Create a dictionary containing a project name and its technology stack.

Previous
Take quiz