From fa0245fdfecd6754ed6ac519fced5f86a9147dac Mon Sep 17 00:00:00 2001 From: Bohdan <22polupanov02@gmail.com> Date: Tue, 17 Mar 2026 21:10:21 +0100 Subject: [PATCH] New list --- app/main.py | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/app/main.py b/app/main.py index f07695b9b..dc77a88ca 100644 --- a/app/main.py +++ b/app/main.py @@ -17,3 +17,44 @@ collection_of_coins = {1, 2, 25} # write your code here +lucky_number = 777 +pi = 3.14 +one_is_a_prime_number = False +name = "Richard" +my_favourite_films = [ + "The Shawshank Redemption", + "The Lord of the Rings: The Return of the King", + "Pulp Fiction", + "The Good, the Bad and the Ugly", + "The Matrix", +] +profile_info = ("michel", "michel@gmail.com", "12345678") +marks = { + "John": 4, + "Sergio": 3, +} +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 var in variables: + if isinstance(var, (list, dict, set)): + sorted_variables["mutable"].append(var) + else: + sorted_variables["immutable"].append(var) \ No newline at end of file