$ ./guess_the_languageProblem Solving — predict the output
Problem Solving — predict the output · easy · #179

What is the output?

print('-'.join('abc'))
  1. a-b-c
  2. -abc-
  3. abc
  4. a-bc
A string is an iterable of characters, so join places the separator between each one.
Play Problem Solving ▸