Conversation
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
Your solution is approved because it correctly implements the required variables and the sorted_variables dictionary according to the task specification. The eight module-level variables are all present, and they are accurately grouped into the "mutable" list (my_favourite_films, marks, collection_of_coins) and the "immutable" list (lucky_number, pi, one_is_a_prime_number, name, profile_info) based on their types, with no structural or runtime issues.
Critical issues:
- None; the implementation satisfies the core requirements and there are no blockers for task completion.
Minor improvements:
flake8reports style issues (Q000) inapp/main.pyon several lines (around 4, 6–10, 12, 14, 15, 20, and 25) because single quotes are used where the project configuration prefers double quotes, so please change string literals from'...'to"..."to keep CI green.- There is an indentation warning
E126near line 26; you can fix this by reducing the indentation of the continuation line so it aligns with the opening parenthesis in a standard hanging indent pattern. - The requirement to read the task guideline cannot be seen from the code; in future, you can mention in your commit or PR description that you have reviewed it.
Overall, you met the core functionality and type-categorization requirements well, and addressing the small style issues will make your submission fully polished and linter-compliant.
✨ 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
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
I am requesting changes because your implementation, while functionally correct, is currently failing a required style check and does not yet meet all explicit checklist items. The flake8-quotes rule (Q000) is triggered on app/main.py (e.g., around lines 4, 6–10, 12, 14–15) because several string literals use single quotes instead of the project-required double quotes, which violates [CHECKLIST ITEM #7] and [CHECKLIST ITEM #8] and blocks the CI pipeline. Please update all module-level string literals to use double quotes, including name, all film titles in my_favourite_films, the strings in profile_info, and the dictionary keys in marks (for example, change name = 'Richard' to name = "Richard"). In addition, the checklist requires you to confirm that you read the task guideline ([CHECKLIST ITEM #6]), which cannot be verified from the code: add a brief note in your next commit message or PR description stating that you have reviewed the guideline at the provided link. These are the only critical issues; the core logic and variable grouping into sorted_variables look correct and aligned with the task requirements. Once you fix the quote style and add the guideline confirmation, your submission will satisfy both the functional and checklist requirements. Overall, you are very close—just address these final compliance details to complete the task successfully.
✨ 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
| 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", | ||
| '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") | ||
| profile_info = ('michel', 'michel@gmail.com', '12345678') | ||
| marks = { | ||
| "John": 4, | ||
| "Sergio": 3, | ||
| 'John': 4, | ||
| 'Sergio': 3, |
There was a problem hiding this comment.
Multiple module-level string literals use single quotes which will trigger flake8 Q000 in this project. Please replace single quotes with double quotes for these literals (e.g., name = "Richard", film titles in the my_favourite_films list, the strings inside profile_info, and the dict keys in marks) to satisfy checklist items #7 and #8.
| collection_of_coins = {1, 2, 25} | ||
|
|
||
| # write your code here | ||
| sorted_variables = { |
There was a problem hiding this comment.
I cannot verify from the code that you read the task guideline (checklist item #6). Please add a short note in your commit or PR description confirming you reviewed the guideline at the provided link.
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Sorry, the pull request review was unsuccessful for the following reasons:
Warning
No changes were made in the pull request since the last review. Please make sure that you have added files to the pull request and committed the changes.
[CODE: NCM]
If the issue is within your control, please address it.
The next review attempt will automatically launch in about 1 hour.
If you believe this is an error or need assistance, please contact the support team.
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
I am approving your solution so you can keep progressing, but this is an educational override because there are still a couple of checklist-related issues to fix. You correctly created the sorted_variables dictionary with exactly the two required keys ("mutable" and "immutable") and placed all eight provided variables into the right lists based on mutability, which satisfies the core task. On line 4 of app/main.py, however, the module-level string literal uses single quotes, which violates the flake8-quotes rule Q000 and the requirement that all module-level strings use double quotes [CHECKLIST ITEM #7][CHECKLIST ITEM #8]; update it from something like name = 'Richard' to name = "Richard". This change will remove the lint error and align your code with the project style guide. Additionally, remember that your next commit message or PR description must include a short note confirming you have read the task guideline (for example: I have reviewed the guideline at https://github.com/mate-academy/py-task-guideline/blob/main/README.md) to satisfy [CHECKLIST ITEM #6]. Once you fix the quote style and add that confirmation to your commit/PR metadata, your solution will fully meet both the functional and checklist requirements. Nice work on the main logic—these remaining adjustments are mostly about polishing and following professional tooling and workflow standards.
✨ 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
| pi = 3.14 | ||
| one_is_a_prime_number = False | ||
| name = "Richard" | ||
| name = 'Richard' |
| collection_of_coins = {1, 2, 25} | ||
|
|
||
| # write your code here | ||
| sorted_variables = { |
There was a problem hiding this comment.
Checklist item #6 requires you to confirm that you read the task guideline in your next commit message or PR description (add a short note like: "I have reviewed the guideline at https://github.com/mate-academy/py-task-guideline/blob/main/README.md"). This can't be verified in the code — please include it in your commit/PR metadata.
|
Ya está todo corregido |
No description provided.