# Set ※要素の重複不可
color = {"R", "G", "B", "G",}
print(color)
# Setのいろいろな操作
c = {"R", "G", "B"}
print(c)
# 要素追加
c.add("A")
print(c)
# 重複要素は追加されない
c.add("R")
print(c)
# 要素削除
c.remove("A")
print(c)
# 全要素削除
c.clear()
print(c)
# セットを合体
c = {"R", "G", "B"}
a = {"A", "B", "C", "D", "E", "F", "G"}
# c U a (和集合)
set1 = c | a
print(set1)
# c ∩ a (交叉)
set2 = c & a
print(set2)
# 差集合
set3 = c - a
print(set3)
# 対称差
set4 = c ^ a
print(set4)
# Tuple
weight = (82, 28, 50, 58, 63, 82)
print(weight)
print(weight[0])
print(weight[2])
# TypeError: 'tuple' object does not support item assignment
# height[2] = 45