diff --git a/app/__pycache__/main.cpython-314.pyc b/app/__pycache__/main.cpython-314.pyc new file mode 100644 index 000000000..c846500ba Binary files /dev/null and b/app/__pycache__/main.cpython-314.pyc differ diff --git a/app/main.py b/app/main.py index f07695b9b..4281d49db 100644 --- a/app/main.py +++ b/app/main.py @@ -16,4 +16,22 @@ } collection_of_coins = {1, 2, 25} -# write your code here + +sorted_variables = {"mutable": [], "immutable": []} + +total_variables = [ + lucky_number, + pi, + one_is_a_prime_number, + name, + my_favourite_films, + profile_info, + marks, + collection_of_coins, +] + +for item in total_variables: + if isinstance(item, (int, float, bool, str, tuple)): + sorted_variables["immutable"].append(item) + elif isinstance(item, (list, dict, set)): + sorted_variables["mutable"].append(item) diff --git a/tatus b/tatus new file mode 100644 index 000000000..70034667b --- /dev/null +++ b/tatus @@ -0,0 +1,23 @@ +f5b6dcd (HEAD -> develop) solution_sorted_variables +86e4f5c (origin/master, origin/HEAD, master) Bump python to 3.14 +e67b5ea Update requirements.txt +7955c89 Update .flake8 +f299108 improved `test_removed_comment` +b9bf72b Merge pull request #199 from mate-academy/add_test_about_comment +3dc5867 added test whoch checks if the comment was removed +6daad60 Update test.yml +ce4915f Merge pull request #107 from mate-academy/add_timeout +3999a04 add timeout on tests +8590d17 Merge pull request #43 from mate-academy/add_exclude_vevn +b1f4077 add blank line +397db34 add exclude venv and tests in .flake8 +44547eb Merge pull request #6 from mate-academy/readme-guideline +96a8dd4 Update README.md +9b6abbd Merge pull request #4 from mate-academy/add-comment-message +5a0eeb0 Update main.py +57ee9bd Merge pull request #2 from mate-academy/readme-fix +964bdee Update README.md +b797ff1 Merge pull request #1 from mate-academy/create-mutable-immutable-task +118d31e Fix bugs +3bc601f Create mutable&immutable task +1380c12 Initial commit diff --git a/tests/__pycache__/__init__.cpython-314.pyc b/tests/__pycache__/__init__.cpython-314.pyc new file mode 100644 index 000000000..9ce24e597 Binary files /dev/null and b/tests/__pycache__/__init__.cpython-314.pyc differ diff --git a/tests/__pycache__/test_main.cpython-314-pytest-9.0.2.pyc b/tests/__pycache__/test_main.cpython-314-pytest-9.0.2.pyc new file mode 100644 index 000000000..1bf550460 Binary files /dev/null and b/tests/__pycache__/test_main.cpython-314-pytest-9.0.2.pyc differ