Skip to content

ramsty/py-mutable-immutable

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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]
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%