Question: A string is read from input into variable new _ color. Add new _ color to colors _ picked. Then, assign num _ colors with
A string is read from input into variable newcolor. Add newcolor to colorspicked. Then, assign numcolors with the number of elements in colorspicked.
Click here for example
Ex: If the input is green, then the output is:
green 'peach', 'salmon', 'yellow'
Number of values picked:
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
