micropython/tests/basics/frozenset_copy.py

13 lines
178 B
Python

try:
frozenset
except NameError:
print("SKIP")
import sys
sys.exit()
s = frozenset({1, 2, 3, 4})
t = s.copy()
print(type(t))
for i in s, t:
print(sorted(i))