in python please
Posted: Sun May 15, 2022 12:28 pm
in python please
Complete the following function which concatenates all strings of a given list of strings as exemplified by the tests at the end. # Purpose: concatenate all strings of a given list L of strings. # For example, if I = ["hello", "", "world") then concat(L) returns "hello worla" def concat(L): # Tests print(concat(("hello", " ", "world"])) # print out hello world print(concat(["ITS", "", "100"])) # print out its 100
Complete the following function which concatenates all strings of a given list of strings as exemplified by the tests at the end. # Purpose: concatenate all strings of a given list L of strings. # For example, if I = ["hello", "", "world") then concat(L) returns "hello worla" def concat(L): # Tests print(concat(("hello", " ", "world"])) # print out hello world print(concat(["ITS", "", "100"])) # print out its 100