-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Expand file tree
/
Copy pathmain.py
More file actions
41 lines (32 loc) · 759 Bytes
/
main.py
File metadata and controls
41 lines (32 loc) · 759 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# mutable variable - list, dictionary, set
# immutable variable - int, float, bool, string, tuple
# int
lucky_number = 777
# float
pi = 3.14
# bool
one_is_a_prime_number = False
# string
name = "Richard"
# list
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",
]
# tuple
profile_info = ("michel", "michel@gmail.com", "12345678")
# dictionary
marks = {
"John": 4,
"Sergio": 3,
}
# set
collection_of_coins = {1, 2, 25}
# write your code here
sorted_variables = {
"mutable": [my_favourite_films, marks, collection_of_coins],
"immutable": [lucky_number, pi, one_is_a_prime_number, name, profile_info],
}