$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · easy · #103

Fill the blank

# joins the list of words into one space-separated string
words = ["hello", "world"]
sentence = " ".____(words)
# sentence == "hello world"

Answer: join (also accepted: join, join())

str.join() concatenates an iterable using the string as separator.
Play Problem Solving ▸