Which of the following define the set {‘a’, ‘b’, ‘c’}:

s = set(‘a’, ‘b’, ‘c’)

s = set([‘a’, ‘b’, ‘c’])

s = {‘a’, ‘b’, ‘c’}

s = {(‘a’, ‘b’, ‘c’)}

1 Like

check out the replies in this link. you’ll find your answer.

1 Like

But when I check the type of fourth option it is showing set

The fourth one is also a set. but its a tuple (‘a’, ‘b’, ‘c’) inside a set.

its not the same as a set {‘a’, b’, ‘c’}

1 Like