Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Note: Using print ( ) with end = ' ' causes the output to end without a detault newine. input _ count input ( )

Note: Using print() with end='' causes the output to end without a detault newine.
input_count input())
traveled_list =[]
for i in range(input_count):
traveled_list.append(input())
print(f'List has {input_count } elements:')
for value in traveled_list:
print(f'({value})', end='')
# Print newline to end the line
print()
For input:
2
Georgia
Washington
input_count is assigned with 2. Then, two values ('Georgia' and 'Washington') are read from input into traveled_list.
'List has 2 elements:' is output. For each value in traveled_list, '(' is output, followed by the value and ')'. Thus, the output is:
List has 2 elements:
(Georgia)(Washington)
Not all tests passed.
1: Compare output ???
Output is nearly correct, but whitespace differs. See highlights below. Special character legend
Input 2
Georgia
Washington
Your output List has 2 elements:
(Georgia)(Washington)
Expected output
List has 2 elements:
(Georgia)(Washington)
2 : Compare output ???
Output is nearly correct, but whitespace differs. See highlights below. Special character legend
I CANT GET THE SPACING RIGHT! PLEASE HELP
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

107 MA ammeter 56 resistor ? V voltmeter

Answered: 1 week ago

Question

Generally If Drug A is an inducer of Drug B , Drug B levels will

Answered: 1 week ago

Question

c. What groups were least represented? Why do you think this is so?

Answered: 1 week ago

Question

7. Describe phases of multicultural identity development.

Answered: 1 week ago