2014-05-10 17:54:23 +04:00
|
|
|
try:
|
|
|
|
frozenset
|
|
|
|
except NameError:
|
|
|
|
print("SKIP")
|
2017-06-10 20:03:01 +03:00
|
|
|
raise SystemExit
|
2014-05-10 17:54:23 +04:00
|
|
|
|
|
|
|
s = frozenset({1, 2, 3, 4})
|
|
|
|
try:
|
|
|
|
print(s.add(5))
|
|
|
|
except AttributeError:
|
|
|
|
print("AttributeError")
|
2016-09-28 04:06:18 +03:00
|
|
|
|
|
|
|
try:
|
|
|
|
print(s.update([5]))
|
|
|
|
except AttributeError:
|
|
|
|
print("AttributeError")
|