3 ms·
> x = set() > x set() Well now I know! However I still think the shared usage of curly braces for dicts and sets could be somewhat confusing. > x = {1, 2, 3
by colpabar 3y ago
> x = set()
> x
set()
Well now I know! However I still think the shared usage of curly braces for dicts and sets could be somewhat confusing.
> x = {1, 2, 3}
> x
{1, 2, 3}
(But maybe no one should listen to me because I don't know how to do code blocks on HN.)
- tczMUFlmoNk 3y agoIndent by four spaces. :-)