Python Programming - Sets - Discussion

Discussion Forum : Sets - General Questions (Q.No. 1)
1.
What is the result of the expression set('python')?
{'p', 'y', 't', 'h', 'o', 'n'}
('p', 'y', 't', 'h', 'o', 'n')
['p', 'y', 't', 'h', 'o', 'n']
('python')
Answer: Option
Explanation:
The set() constructor converts a string into a set of its characters.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.