Skip to content

Commit

Permalink
Correction of comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Gudei committed Nov 13, 2023
1 parent 247e962 commit 1a8bf08
Showing 1 changed file with 12 additions and 20 deletions.
32 changes: 12 additions & 20 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,15 @@
}
collection_of_coins = {1, 2, 25}
# write code below this line
list_of_all_variable = [
lucky_number,
pi,
one_is_a_prime_number,
name,
my_favourite_films,
profile_info,
marks,
collection_of_coins
]
sorted_variables = {}
mutable_variable_list = []
immutable_variable_list = []
for element in list_of_all_variable:
if isinstance(element, (int, str, bool, float, tuple)):
immutable_variable_list.append(element)
else:
mutable_variable_list.append(element)
sorted_variables["mutable"] = mutable_variable_list
sorted_variables["immutable"] = immutable_variable_list
sorted_variables = {
"mutable": [
my_favourite_films,
marks,
collection_of_coins],
"immutable": [
lucky_number,
pi,
one_is_a_prime_number,
name,
profile_info]
}

0 comments on commit 1a8bf08

Please sign in to comment.