Par S. answered 02/04/23
Data Analyst specializing in Healthcare
print(set("Mississippi"))
output:
{'i', 'M', 'p', 's'}
Bryce H.
asked 02/04/23Write an expression that would turn the string "Mississippi" into a set of unique letters.
For example:
set("Parallel") would return set {"P", "a", "e", "l", "r"}
You should only write one line of code for this. Do not assign a variable name to the set.
Par S. answered 02/04/23
Data Analyst specializing in Healthcare
print(set("Mississippi"))
output:
{'i', 'M', 'p', 's'}
Get a free answer to a quick problem.
Most questions answered within 4 hours.
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.