Skip to content

Solution#3394

Open
polokR1 wants to merge 2 commits intomate-academy:masterfrom
polokR1:develop
Open

Solution#3394
polokR1 wants to merge 2 commits intomate-academy:masterfrom
polokR1:develop

Conversation

@polokR1
Copy link
Copy Markdown

@polokR1 polokR1 commented Mar 24, 2026

No description provided.

Copy link
Copy Markdown

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

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

Review Summary

You've done a great job identifying which variables are mutable and immutable. However, this solution requires a change because the task specifically requires the dictionary values to be lists, but your code currently creates tuples. In Python, using comma-separated values like var1, var2 creates a tuple. To create a list as required, you need to enclose the variables in square brackets: [var1, var2]. Please update both the "mutable" and "immutable" values in your dictionary to use the correct list syntax.


✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨

Important

Fix the issues, commit the changes, and then re-request my review using the Re-request review button2 in the Reviewers tab.

Tip

If you have any comments about this review, please leave a message in the Add a comment section below and mention me with the @mateacademy-ai-mentor tag3.
I will read your message during my next review of your pull request. Please do not reply directly to my comments, as that feature is not supported yet.

Caution

Do not close the pull request until the review is complete. Closing it early can lead to unexpected behavior and disrupt the review process.

Footnotes

  1. Rate AI review example

  2. Re-request AI review example

  3. Add AI review comments example

app/main.py Outdated
collection_of_coins = {1, 2, 25}

# write your code here
mutable_items = my_favourite_films, marks, collection_of_coins
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This syntax creates a tuple, but the task requires a list. Remember to use square brackets ([]) to create a list.

app/main.py Outdated

# write your code here
mutable_items = my_favourite_films, marks, collection_of_coins
immutable_items = lucky_number, pi, one_is_a_prime_number, name, profile_info
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Similar to the mutable_items, this variable is also a tuple instead of the required list.

Copy link
Copy Markdown

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

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

Review Summary

Excellent work on this task! I'm happy to approve your solution. You've successfully addressed the previous feedback by using lists for the dictionary values, which is exactly what was needed. The code now correctly sorts all variables into the mutable and immutable categories and fully meets all the requirements. Well done!


✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨

Footnotes

  1. Rate AI review example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants