watches = {
"Luxury Watches": ["Rolex Submariner", "Omega Seamaster", "Patek Philippe Nautilus"],
"Smartwatches": ["Apple Watch Series 9", "Samsung Galaxy Watch 6", "Garmin Venu 2"],
"Diving Watches": ["Seiko Prospex", "Citizen Eco-Drive Diver", "Longines HydroConquest"],
"Pilot Watches": ["Breitling Navitimer", "IWC Big Pilot", "Bell & Ross BR 03-92"]
}
def print_watches(watch_collection):
for category, items in watch_collection.items():
print(f"\n{category}:")
for item in items:
print(f" - {item}")
print_watches(watches)
Luxury Watches:
- Rolex Submariner
- Omega Seamaster
- Patek Philippe Nautilus
Smartwatches:
- Apple Watch Series 9
- Samsung Galaxy Watch 6
- Garmin Venu 2
Diving Watches:
- Seiko Prospex
- Citizen Eco-Drive Diver
- Longines HydroConquest
Pilot Watches:
- Breitling Navitimer
- IWC Big Pilot
- Bell & Ross BR 03-92
sprints = {
'Sprint1': ['Frontend Development', 'Github Pages Playground', 'Javascript Playground', 'SASS Basics'],
'Sprint2': ['Big Ideas 3.6', 'Big Ideas 3.7']
}
print(sprints['Sprint1'])
if "Frontend Development" in sprints['Sprint1']:
print(True)
else:
print(False)
print(sprints['Sprint1'])
if "Frontend Development" in sprints['Sprint1']:
print(True)
else:
print(False)
['Frontend Development', 'Github Pages Playground', 'Javascript Playground', 'SASS Basics']
True
movie_library = [
{
"title": "Inception",
"director": "Christopher Nolan",
"genre": "Science Fiction",
"copies_available": 3,
"borrowers": [
{"name": "Alice Smith", "borrow_date": "2024-09-20"},
{"name": "Bob Johnson", "borrow_date": "2024-09-25"}
]
},
{
"title": "The Shawshank Redemption",
"director": "Frank Darabont",
"genre": "Drama",
"copies_available": 2,
"borrowers": [
{"name": "Carlos Martinez", "borrow_date": "2024-09-15"}
]
},
{
"title": "The Dark Knight",
"director": "Christopher Nolan",
"genre": "Action",
"copies_available": 1,
"borrowers": [
{"name": "Diana Lee", "borrow_date": "2024-09-10"},
]
}
]
for movie in movie_library:
print(f"Title: {movie['title']}")
print(f"Director: {movie['director']}")
print(f"Genre: {movie['genre']}")
print(f"Copies Available: {movie['copies_available']}")
print("Borrowers:")
for borrower in movie['borrowers']:
print(f" - {borrower['name']} (Borrowed on: {borrower['borrow_date']})")
print("\n")
Title: Inception
Director: Christopher Nolan
Genre: Science Fiction
Copies Available: 3
Borrowers:
- Alice Smith (Borrowed on: 2024-09-20)
- Bob Johnson (Borrowed on: 2024-09-25)
Title: The Shawshank Redemption
Director: Frank Darabont
Genre: Drama
Copies Available: 2
Borrowers:
- Carlos Martinez (Borrowed on: 2024-09-15)
Title: The Dark Knight
Director: Christopher Nolan
Genre: Action
Copies Available: 1
Borrowers:
- Diana Lee (Borrowed on: 2024-09-10)