Skip to content
Open
Changes from 1 commit
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
5 changes: 4 additions & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,7 @@
}
collection_of_coins = {1, 2, 25}

# write your code here
sorted_variables = {
"mutable": [my_favourite_films, marks, collection_of_coins],

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

collection_of_coins is currently grouped under "mutable", but according to the task you should only store truly mutable structures (like lists and dicts) there; move collection_of_coins into the "immutable" list so that "mutable" contains only my_favourite_films and marks, and "immutable" contains the remaining variables.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

sorted_variables["mutable"] should contain only my_favourite_films and marks per the task’s mutability classification; collection_of_coins must be moved to the "immutable" list, and all eight variables must appear across the two lists without omission or duplication (checklist items #2, #3, #6).

"immutable": [lucky_number, name, pi, one_is_a_prime_number, profile_info]
}
Loading