docs: add comprehensive chapter on Sets in Python#140
Merged
Conversation
- Introduced Sets with clear definitions and characteristics
- Explained creation methods using {} and set()
- Detailed set operations: union, intersection, difference, symmetric difference
- Covered methods for adding, removing, and updating elements
- Included examples, best practices, and use cases
- Added section on frozenset (immutable sets)
- Provided practice exercises and a summary table
Co-Authored-By: Sanjay Viswanathan <[email protected]>
Contributor
|
@codewithdhruba01 is attempting to deploy a commit to the recode Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Member
|
@sanjay-kv |
Contributor
There was a problem hiding this comment.
Pull Request Overview
A new chapter on Python Sets has been added, alongside an update to the sidebar ordering.
- Updated the sidebar position for the setup-environment doc to make room for the new Sets chapter
- Introduced a full
python-set.mdfile covering definitions, creation methods, operations, frozenset, examples, and exercises
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| docs/python/setup-environment.md | Incremented sidebar_position from 10 to 11 to accommodate Sets doc |
| docs/python/python-set.md | Added comprehensive documentation on Python Sets |
Comments suppressed due to low confidence (3)
docs/python/python-set.md:4
- Frontmatter fields shouldn’t include inline comments. Consider removing
#displays in sidebaror moving it outside the YAML block to avoid it rendering in the page.
sidebar_label: Set in Python #displays in sidebar
docs/python/python-set.md:53
- The code block is closed with four backticks—replace with three (```) to properly terminate the Python code fence.
**docs/python/python-set.md:160**
* The table cell for the Union syntax is broken across columns. It should be formatted as a single entry, for example: `` `a | b or a.union(b)` ``.
| Union | `a | bora.union(b)` | Combine all elements from both sets |
</details>
sanjay-kv
approved these changes
Jul 2, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
close #139