add()
# create a set my_set = {1, 2, 3} # add an item to the set my_set.add(4) # print the updated set print(my_set)
{1, 2, 3, 4}