Question: Integer num_in is read from input representing the number of values to be read next. The remaining values are read from input into color_list. Use
Integer num_in is read from input representing the number of values to be read next. The remaining values are read from input into color_list. Use a loop to output all values in color_list on the same line, and surround each value with square brackets. End with a newline. Note: Using print() with end='' causes the output to end without a default newline. num_in = int(input()) color_list = [] for i in range(num_in): color_list.append(input()) print(f'List has {num_in} elements:') ''' Your code goes here
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
