Skip to content
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

Add data structure comparison table #32

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Add data structure comparison table #32

wants to merge 5 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Jan 22, 2021

I think it would help beginners to have a better understanding of python's data structures by comparing them with a table.

Renato Grimes added 5 commits January 21, 2021 20:43
Creates a file that contains a comparison table of the python collection data types.
…son.md

Renames file to a better description and adds initializer to table
@@ -0,0 +1,17 @@
* Changeble: can add or remove items after the collection has been created

Choose a reason for hiding this comment

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

Typo here. Should be Changeable. Although I personally think you should use Mutable instead.

| | dictionary | set | list | tuple |
|-------------------|---------------|-------|--------|---------|
| Initializer | { key:value } | { } | [ ] | ( ) |
| Changeble? | yes | no¹ | yes | no |

Choose a reason for hiding this comment

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

Same as the above.

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.

None yet

1 participant