Question: Strings list 1 , list 2 , and list 3 are read from input. Each string consists of at least two colors, separated by

Strings list1, list2, and list3 are read from input. Each string consists of at least two colors, separated by "-" and surrounded by
"(" and ")". Assign allFirsts with the first color from each string, separated by "-".
Ex: If the input is:
(indigo-teal-beige)
(gray-magenta-ochre)
(tan-brick-red)
then the output is:
indigo-gray-tan
 Strings list1, list2, and list3 are read from input. Each string

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!