Write code to create a set with the following integers as members: 10, 20, 30, and 40.
The following code statements is used to create a set with the following integers as members: 10, 20, 30, and 40:
# Using curly brackets {}
my_set = {10, 20, 30, 40} # Creating a set using curly brackets
print(my_set)
Executed output:
{10, 20, 30,40}