Python: Updating a Set
Posted: Wed Oct 22, 2025 6:05 am
Code: Select all
first_set_of_board_games = set(("Life", "Monopoly", "Candyland"))
second_set_of_board_games = set(("chess", "checkers", "backgammon"))
first_set_of_board_games.update(second_set_of_board_games)
print(first_set_of_board_games)