From 7581122f0f40ca84286a45a4b581d24246e3c2f4 Mon Sep 17 00:00:00 2001 From: Lysenko Volodymyr Date: Sat, 16 May 2026 22:30:08 +0200 Subject: [PATCH 01/14] Solution --- app/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index f07695b9b..49cfcd4a5 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 3c0bbb8973237d90dbbfce990c190fba089e1010 Mon Sep 17 00:00:00 2001 From: Lysenko Volodymyr Date: Sat, 16 May 2026 22:47:25 +0200 Subject: [PATCH 02/14] Solution --- app/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/main.py b/app/main.py index 49cfcd4a5..0b01ab5ea 100644 --- a/app/main.py +++ b/app/main.py @@ -17,6 +17,7 @@ collection_of_coins = {1, 2, 25} sorted_variables = { - 'mutable': [my_favourite_films, marks, collection_of_coins], - 'immutable': [lucky_number, pi, one_is_a_prime_number, name, profile_info], + "mutable": [my_favourite_films, marks, collection_of_coins], + "immutable": + [lucky_number, pi, one_is_a_prime_number, name, profile_info], } From 72399e2b91dfabfb6eedd874fcdd2264aa613999 Mon Sep 17 00:00:00 2001 From: Lysenko Volodymyr Date: Sat, 16 May 2026 22:58:49 +0200 Subject: [PATCH 03/14] Solution --- app/main.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/app/main.py b/app/main.py index 0b01ab5ea..6489f779c 100644 --- a/app/main.py +++ b/app/main.py @@ -17,7 +17,15 @@ collection_of_coins = {1, 2, 25} sorted_variables = { - "mutable": [my_favourite_films, marks, collection_of_coins], - "immutable": - [lucky_number, pi, one_is_a_prime_number, name, profile_info], + "mutable": [ + my_favourite_films, + marks, + collection_of_coins + ], + "immutable": [ + lucky_number, + pi, + one_is_a_prime_number, + name, + profile_info], } From afecc0419c389ab7bfba1a36ffa0f0ad8f8caf03 Mon Sep 17 00:00:00 2001 From: Lysenko Volodymyr Date: Sat, 16 May 2026 23:10:24 +0200 Subject: [PATCH 04/14] Fix style violations --- app/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/main.py b/app/main.py index 6489f779c..39b76b580 100644 --- a/app/main.py +++ b/app/main.py @@ -21,11 +21,12 @@ my_favourite_films, marks, collection_of_coins - ], + ], "immutable": [ lucky_number, pi, one_is_a_prime_number, name, - profile_info], + profile_info + ], } From 79e863d4c388680fee3e215c0f9fc886d7d0ea18 Mon Sep 17 00:00:00 2001 From: Lysenko Volodymyr Date: Sat, 16 May 2026 23:19:52 +0200 Subject: [PATCH 05/14] Fix style violations --- app/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/main.py b/app/main.py index 39b76b580..00cfd357e 100644 --- a/app/main.py +++ b/app/main.py @@ -20,13 +20,13 @@ "mutable": [ my_favourite_films, marks, - collection_of_coins + collection_of_coins, ], "immutable": [ lucky_number, pi, one_is_a_prime_number, name, - profile_info + profile_info, ], } From 6fa48787b9d02181cad1a9c350b22e8f07d528a8 Mon Sep 17 00:00:00 2001 From: Lysenko Volodymyr Date: Sat, 16 May 2026 23:24:18 +0200 Subject: [PATCH 06/14] Fix style violations --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 00cfd357e..3e7a80b02 100644 --- a/app/main.py +++ b/app/main.py @@ -21,7 +21,7 @@ my_favourite_films, marks, collection_of_coins, - ], + ], "immutable": [ lucky_number, pi, From e2858d2e8ea05703813e90bfd401226ab15ecf4b Mon Sep 17 00:00:00 2001 From: Lysenko Volodymyr Date: Sat, 16 May 2026 23:49:55 +0200 Subject: [PATCH 07/14] Fix style violations --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 3e7a80b02..bc167ff00 100644 --- a/app/main.py +++ b/app/main.py @@ -21,12 +21,12 @@ my_favourite_films, marks, collection_of_coins, + profile_info, ], "immutable": [ lucky_number, pi, one_is_a_prime_number, name, - profile_info, ], } From f93f9dc1d260cd16bdbc28d9eda39adb59481c38 Mon Sep 17 00:00:00 2001 From: Lysenko Volodymyr Date: Sat, 16 May 2026 23:57:23 +0200 Subject: [PATCH 08/14] Fix data types according to definitions --- app/main.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/app/main.py b/app/main.py index bc167ff00..02a285ea1 100644 --- a/app/main.py +++ b/app/main.py @@ -18,15 +18,15 @@ sorted_variables = { "mutable": [ - my_favourite_films, - marks, - collection_of_coins, - profile_info, + my_favourite_films, # це список (list) -> mutable + marks, # це словник (dict) -> mutable + collection_of_coins, # це множина (set) -> mutable ], "immutable": [ - lucky_number, - pi, - one_is_a_prime_number, - name, + lucky_number, # int -> immutable + pi, # float -> immutable + one_is_a_prime_number, # bool -> immutable + name, # str -> immutable + profile_info, # це кортеж (tuple) -> immutable ], -} +} \ No newline at end of file From 3e3e2e707d0b22bda6b2deebb30285c0fa20f70d Mon Sep 17 00:00:00 2001 From: Lysenko Volodymyr Date: Sun, 17 May 2026 00:04:52 +0200 Subject: [PATCH 09/14] Fix data types according to definitions --- app/main.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/main.py b/app/main.py index 02a285ea1..0ce7a2035 100644 --- a/app/main.py +++ b/app/main.py @@ -18,15 +18,15 @@ sorted_variables = { "mutable": [ - my_favourite_films, # це список (list) -> mutable - marks, # це словник (dict) -> mutable - collection_of_coins, # це множина (set) -> mutable + my_favourite_films, + marks, + collection_of_coins, ], "immutable": [ - lucky_number, # int -> immutable - pi, # float -> immutable - one_is_a_prime_number, # bool -> immutable - name, # str -> immutable - profile_info, # це кортеж (tuple) -> immutable + lucky_number, + pi, + one_is_a_prime_number, + name, + profile_info, ], } \ No newline at end of file From bc001ca0376b05bb4d9b68cb6fad85c2b8b48060 Mon Sep 17 00:00:00 2001 From: Lysenko Volodymyr Date: Sun, 17 May 2026 00:37:42 +0200 Subject: [PATCH 10/14] Fix trailing commas completely --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 0ce7a2035..71a2eddfc 100644 --- a/app/main.py +++ b/app/main.py @@ -28,5 +28,5 @@ one_is_a_prime_number, name, profile_info, - ], + ] } \ No newline at end of file From cab552b886c475f6962d8f878abf11fa139ce063 Mon Sep 17 00:00:00 2001 From: Lysenko Volodymyr Date: Sun, 17 May 2026 00:41:08 +0200 Subject: [PATCH 11/14] Fix trailing commas completely --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 71a2eddfc..efb2b85c6 100644 --- a/app/main.py +++ b/app/main.py @@ -27,6 +27,6 @@ pi, one_is_a_prime_number, name, - profile_info, + profile_info ] } \ No newline at end of file From 256bce1286dea4456dfe188cbcdca78c92db3ea5 Mon Sep 17 00:00:00 2001 From: Lysenko Volodymyr Date: Sun, 17 May 2026 00:41:08 +0200 Subject: [PATCH 12/14] Fix trailing commas completely --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 71a2eddfc..efb2b85c6 100644 --- a/app/main.py +++ b/app/main.py @@ -27,6 +27,6 @@ pi, one_is_a_prime_number, name, - profile_info, + profile_info ] } \ No newline at end of file From 8b5fb9cc240cb53e03c952f4c4585b3ca3c9e14f Mon Sep 17 00:00:00 2001 From: Lysenko Volodymyr Date: Sun, 17 May 2026 01:01:09 +0200 Subject: [PATCH 13/14] Fix layout final --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index efb2b85c6..84de23b84 100644 --- a/app/main.py +++ b/app/main.py @@ -29,4 +29,4 @@ name, profile_info ] -} \ No newline at end of file +} From e3186b5a25f4fc7b54b78023cb6f5d411d114bfd Mon Sep 17 00:00:00 2001 From: Lysenko Volodymyr Date: Sun, 17 May 2026 08:21:44 +0200 Subject: [PATCH 14/14] Final check with trailing comma --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 84de23b84..03b577b79 100644 --- a/app/main.py +++ b/app/main.py @@ -27,6 +27,6 @@ pi, one_is_a_prime_number, name, - profile_info + profile_info, ] }