Q. Which of the following is the correct way to create a set in Python?
β
Correct Answer: (B)
set = {1, 2, 3}
Explanation: In Python, sets are created using curly braces: set = {1, 2, 3}.