Code
# Empty set
= set()
empty_set print(f"Empty set: {empty_set}")
# Set from a list
= set([1, 2, 3, 4, 5])
set_from_list print(f"Set from list: {set_from_list}")
# Set literal
= {1, 2, 3, 4, 5}
set_literal print(f"Set literal: {set_literal}")
Empty set: set()
Set from list: {1, 2, 3, 4, 5}
Set literal: {1, 2, 3, 4, 5}