Skip to content

Fix incorrect comment for set type and add comment for tuple type in …#913

Open
Tiksi14 wants to merge 1 commit into
Asabeneh:masterfrom
Tiksi14:patch-2
Open

Fix incorrect comment for set type and add comment for tuple type in …#913
Tiksi14 wants to merge 1 commit into
Asabeneh:masterfrom
Tiksi14:patch-2

Conversation

@Tiksi14

@Tiksi14 Tiksi14 commented Jul 14, 2026

Copy link
Copy Markdown

…helloworld.py

The line print(type({9.8, 3.14, 2.7})) uses curly braces, which creates a set, not a tuple. The original comment # Tuple was misleading.

This PR adds a separate example using round brackets () to correctly demonstrate a tuple, and fixes the comment for the set example to say # Set instead.

…helloworld.py

The line `print(type({9.8, 3.14, 2.7}))` uses curly braces, 
which creates a `set`, not a `tuple`. The original comment 
`# Tuple` was misleading.

This PR adds a separate example using round brackets `()` to 
correctly demonstrate a tuple, and fixes the comment for the 
set example to say `# Set` instead.
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.

1 participant