Question: Edit Metadata Strings have a method called join. join takes one argument, an array of strings. It returns a single string. Specifically, the value of

Edit Metadata Strings have a method called join. join takes one argument, an array of strings. It returns a single string. Specifically, the value of a_string.join(an_array) is a single string that's the concatenation ("putting together") of all the strings in an_array, except a_string is inserted in between each string. Question 3. Use the array book_title_words and the method join to make two strings: 1. "Eats, Shoots, and Leaves" (call this one with_commas)2. "Eats Shoots and Leaves" (call this one without_commas ) Hint: If you're not sure what join does, first try just calling, for example, "foo".join(book_title_words) Edit Metadata with_commas without_commas # These lines are provided just to print out your answers. print('with_commas:', with_commas) print('without_commas:', without_commas)

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 Programming Questions!