We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c582bc commit 17b4509Copy full SHA for 17b4509
1 file changed
tests/basics/set1.py
@@ -6,6 +6,10 @@
6
s = {3, 4, 3, 1}
7
print(sorted(s))
8
9
+# expression in constructor
10
+s = {1 + len(s)}
11
+print(s)
12
+
13
# Sets are not hashable
14
try:
15
{s: 1}
0 commit comments