diff --git a/.flake8 b/.flake8 index d7459204e..26297df67 100644 --- a/.flake8 +++ b/.flake8 @@ -4,4 +4,4 @@ ignore = E203, E266, W503, ANN002, ANN003, ANN101, ANN102, ANN401, N807, N818 max-line-length = 79 max-complexity = 18 select = B,C,E,F,W,T4,B9,ANN,Q0,N8,VNE -exclude = venv, tests +exclude = .venv, venv, tests diff --git a/app/main.py b/app/main.py index f07695b9b..72a4a528c 100644 --- a/app/main.py +++ b/app/main.py @@ -16,4 +16,24 @@ } collection_of_coins = {1, 2, 25} -# write your code here +sorted_variables = { + "mutable": [], + "immutable": [] +} + +variables = [ + lucky_number, + pi, + one_is_a_prime_number, + name, + my_favourite_films, + profile_info, + marks, + collection_of_coins +] + +for item in variables: + if isinstance(item, (list, dict, set)): + sorted_variables["mutable"].append(item) + else: + sorted_variables["immutable"].append(item)