-
Notifications
You must be signed in to change notification settings - Fork 3k
create sorted_variables dictionary #3607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,4 +16,20 @@ | |
| } | ||
| 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 {} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same inline comment spacing issue as above: add two spaces before |
||
| collection_of_coins, # Set {} , with single values | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same inline comment spacing issue: fix to |
||
| ], | ||
| "immutable" : [ | ||
| lucky_number, # Integer (int) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Inline comments here also need two spaces before |
||
| one_is_a_prime_number, #Boolean value (bool) | ||
| pi, # Floating-point number (float) | ||
| name, # String (str) | ||
| profile_info, # Tuple () | ||
| ] | ||
| } | ||
|
|
||
|
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This file ends with an extra blank line, which was previously flagged (W391). Remove the trailing blank line so the file ends immediately after the closing brace of |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inline comments should follow the requested style: two spaces before
#and a space after it (e.g.,my_favourite_films, # List[]). Please adjust all similar inline comments here to match that format.