Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 562 Bytes

README.md

File metadata and controls

23 lines (18 loc) · 562 Bytes

Mutable and Immutable

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:

a = 123
b = []
c = "Hi!"
d = [1, 2]

sorted_variables = {
    "mutable": [b, d],
    "immutable": [a, c]
}