diff --git a/app/__pycache__/main.cpython-312.pyc b/app/__pycache__/main.cpython-312.pyc new file mode 100644 index 00000000..c3c41c55 Binary files /dev/null and b/app/__pycache__/main.cpython-312.pyc differ diff --git a/app/main.py b/app/main.py index f07695b9..328355fe 100644 --- a/app/main.py +++ b/app/main.py @@ -16,4 +16,13 @@ } collection_of_coins = {1, 2, 25} -# write your code here +def sort_variables_by_mutability(): + mutable_variables = [my_favourite_films, marks, collection_of_coins] # Lists, dictionaries, and sets are mutable + immutable_variables = [lucky_number, pi, one_is_a_prime_number, name, + profile_info] # Integers, floats, booleans, strings, and tuples are immutable + + return {"mutable": mutable_variables, "immutable": immutable_variables} + + +sorted_variables = sort_variables_by_mutability() +print(sorted_variables) diff --git a/tests/__pycache__/__init__.cpython-312.pyc b/tests/__pycache__/__init__.cpython-312.pyc new file mode 100644 index 00000000..19814b3c Binary files /dev/null and b/tests/__pycache__/__init__.cpython-312.pyc differ diff --git a/tests/__pycache__/test_main.cpython-312-pytest-7.1.3.pyc b/tests/__pycache__/test_main.cpython-312-pytest-7.1.3.pyc new file mode 100644 index 00000000..9f7a6c51 Binary files /dev/null and b/tests/__pycache__/test_main.cpython-312-pytest-7.1.3.pyc differ