Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,36 @@
pi = 3.14
one_is_a_prime_number = False
name = "Richard"

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",
]

profile_info = ("michel", "michel@gmail.com", "12345678")

marks = {
"John": 4,
"Sergio": 3,
}

collection_of_coins = {1, 2, 25}

# write your code here
# Create a dictionary categorized by data types
sorted_variables = {
"mutable": [
my_favourite_films, # List []
marks, # Dictionary {}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same inline comment spacing issue as above: add two spaces before # and ensure there is a space after #. Apply this consistently to all inline comments in this block.

collection_of_coins, # Set {}, with single values
],
"immutable": [
lucky_number, # Integer (int)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inline comments here also need two spaces before # and a space after it (for all commented entries in the "immutable" list).

one_is_a_prime_number, # Boolean value (bool)
pi, # Floating-point number (float)
name, # String (str)
profile_info, # Tuple ()
]
}
Loading