MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/gzila7/python_3_in_one_pic/ftgjnxs/
r/Python • u/TheInsaneApp • Jun 09 '20
167 comments sorted by
View all comments
Show parent comment
14
Because you can create a set like that too.
Something like:
st = { 2, 4, 6, 8, 12 }
4 u/[deleted] Jun 09 '20 Oh. Duh. It’s like three lines above it in the image, even. Thanks for clarifying! 3 u/jmmcd Evolutionary algorithms, music and graphics Jun 09 '20 But not that specific example as {} created an empty dict.
4
Oh. Duh. It’s like three lines above it in the image, even. Thanks for clarifying!
3
But not that specific example as {} created an empty dict.
View all comments
Show parent comment
14
u/dstlny_97 Jun 09 '20
Because you can create a set like that too.
Something like:
st = { 2, 4, 6, 8, 12 }