Question: The following code outputs a string using values read from input, but the program contains a line with more than 8 0 columns.Use implicit line

The following code outputs a string using values read from input, but the program contains a line with more than 80 columns.Use implicit line joining to join the long string in animals_string so that the program does not contain any lines with more than 80 columns.
1 adjective1= input()
2 adjective2= input()
3
4 # Modify the following line
5 animals_string = "Taylor's favorite exhibit to look at when he goes to the zoo is the red panda exhibit. He thinks the red pandas are {0} and {1}."
6
7 # format replaces the curly braces in a string with variables.
8 # This method is being used to test your code.
9 new_str = animals_string. format(adjective1, adjective2)
10 print(new_str)

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!