Question: Python: List colors _ list contains three strings read from input. Create a set named unique _ colors containing the unique strings in colors _
Python: List colorslist contains three strings read from input. Create a set named uniquecolors containing the unique strings in colorslist.
Ex: If the input is:
gold
coral
gold
then the output is:
coral 'gold'
Note: Because sets are unordered, the set is printed using the sorted function here for comparison.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
