How do we convert a string to a set in Python?
Answers
Answered by
0
just use:
set()
eg.
print(set('thequickbrownfoxjumpsoveralazydog'))
returns
{'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'}
in a random order
Similar questions
CBSE BOARD XII,
6 months ago
Science,
6 months ago
Computer Science,
1 year ago
Economy,
1 year ago
Science,
1 year ago