diff --git a/app/main.py b/app/main.py index f07695b9b..0011db32e 100644 --- a/app/main.py +++ b/app/main.py @@ -16,4 +16,20 @@ } collection_of_coins = {1, 2, 25} -# write your code here +# Create dictionary +sorted_variables = { + "mutable": [], + "immutable": [] +} + +# Put variables into a list +variables = {"alucky_number": lucky_number, "pi": pi, "one_is_a_prime_number": one_is_a_prime_number, "cname": name, "my_favourite_films": my_favourite_films, "profile_info": profile_info, "marks": marks, "collection_of_coins": collection_of_coins} + +# Check each variable type +for name, value in variables.items(): + if type(value) in [list, dict, set]: + sorted_variables["mutable"].append(name) + else: + sorted_variables["immutable"].append(name) + +print(sorted_variables)