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
24 changes: 23 additions & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,26 @@
}
collection_of_coins = {1, 2, 25}

# write your code here
sorted_variables = {
"mutable": [],
"immutable": []
}
Comment thread
6557755677ety56g marked this conversation as resolved.


def find_value_type(value):
if type(value) in (str, float, int, bool, tuple):
sorted_variables["immutable"].append(value)
elif value is None:
sorted_variables["immutable"].append(value)
if type(value) in (list, dict, set):
sorted_variables["mutable"].append(value)


find_value_type(lucky_number)
find_value_type(pi)
find_value_type(one_is_a_prime_number)
find_value_type(name)
find_value_type(my_favourite_films)
find_value_type(profile_info)
find_value_type(marks)
find_value_type(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.

The entire function and all function calls are unnecessary. The task requires direct assignment of variables to the dictionary lists, not runtime population through function calls.

Loading