From 6c0eb57ca00f6e573cd6a08220a27252ff8594eb Mon Sep 17 00:00:00 2001 From: Maksym Kobelianskyi Date: Thu, 26 Mar 2026 18:07:40 +0200 Subject: [PATCH 1/4] mutable/immutable --- app/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index f07695b9b..1aeecaef7 100644 --- a/app/main.py +++ b/app/main.py @@ -16,4 +16,7 @@ } collection_of_coins = {1, 2, 25} -# write your code here +sorted_variables = { + "mutable": [my_favourite_films, marks, collection_of_coins] + "immutable": [lucky_number, pi, one_is_a_prime_number, name, profile_info] +} From 3954c639e6a80b52138d32e8209cd932aac94a25 Mon Sep 17 00:00:00 2001 From: Maksym Kobelianskyi Date: Thu, 26 Mar 2026 18:07:48 +0200 Subject: [PATCH 2/4] mutable/immutable --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5e09de186..34787688a 100644 --- a/README.md +++ b/README.md @@ -20,4 +20,4 @@ sorted_variables = { "mutable": [b, d], "immutable": [a, c] } -``` +``` \ No newline at end of file From 508024a62ebf15f678261940d9d4a00b609a0794 Mon Sep 17 00:00:00 2001 From: hesoyam-py Date: Thu, 26 Mar 2026 18:18:45 +0200 Subject: [PATCH 3/4] Delete README.md --- README.md | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 README.md diff --git a/README.md b/README.md deleted file mode 100644 index 34787688a..000000000 --- a/README.md +++ /dev/null @@ -1,23 +0,0 @@ -# Mutable and Immutable - -- Read [the guideline](https://github.com/mate-academy/py-task-guideline/blob/main/README.md) before start -- Implement the task: - -There are 8 variables of different data types in the main module. - -Your task is to create dictionary `sorted_variables` with two keys: -`"mutable"` and `"immutable"`. -Each value should be equal to a list that contains all variables of corresponding type. - -Example with other variables: -```python -a = 123 -b = [] -c = "Hi!" -d = [1, 2] - -sorted_variables = { - "mutable": [b, d], - "immutable": [a, c] -} -``` \ No newline at end of file From d8428a79989087cb122d781edd007420c133ec73 Mon Sep 17 00:00:00 2001 From: Maksym Kobelianskyi Date: Thu, 26 Mar 2026 18:22:40 +0200 Subject: [PATCH 4/4] mutable/immutable --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 1aeecaef7..5789d4378 100644 --- a/app/main.py +++ b/app/main.py @@ -17,6 +17,6 @@ collection_of_coins = {1, 2, 25} sorted_variables = { - "mutable": [my_favourite_films, marks, collection_of_coins] + "mutable": [my_favourite_films, marks, collection_of_coins], "immutable": [lucky_number, pi, one_is_a_prime_number, name, profile_info] }