Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added app/__pycache__/main.cpython-314.pyc
Binary file not shown.
17 changes: 14 additions & 3 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,24 @@
"The Lord of the Rings: The Return of the King",
"Pulp Fiction",
"The Good, the Bad and the Ugly",
"The Matrix",
]
"The Matrix"]
profile_info = ("michel", "michel@gmail.com", "12345678")
marks = {
"John": 4,
"Sergio": 3,
}
collection_of_coins = {1, 2, 25}

# write your code here
sorted_variables = {"mutable": [], "immutable": []}

sorted_variables["immutable"].append(lucky_number)
sorted_variables["immutable"].append(pi)
sorted_variables["immutable"].append(one_is_a_prime_number)
sorted_variables["immutable"].append(name)
sorted_variables["immutable"].append(profile_info)

sorted_variables["mutable"].append(marks)
sorted_variables["mutable"].append(collection_of_coins)
sorted_variables["mutable"].append(my_favourite_films)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Instead of initializing empty lists and using multiple append() calls, consider creating the dictionary with the values directly. It is more concise and easier to read


print(sorted_variables)
Binary file added tests/__pycache__/__init__.cpython-314.pyc
Binary file not shown.
Binary file not shown.
Loading