Skip to content
Open
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
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 a set, which is a mutable type in Python, but the overall task only requires grouping by mutability, not by specific type. Your current grouping still satisfies the requirement to separate mutable vs immutable variables, since lists, dicts, and sets are all mutable, and the remaining variables are immutable. Just be aware conceptually that sets are mutable too, which is why including this variable under "mutable" is correct.

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