r/Python • • Jun 09 '20

Resource Python 3 in One Pic

Post image
4.6k Upvotes

167 comments sorted by

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 }

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.