$ ./guess_the_languageProblem Solving — predict the output
Problem Solving — predict the output · medium · #204

What is the output?

print(*[1, 2, 3], sep='-')
  1. [1, 2, 3]
  2. 1-2-3
  3. 1 2 3
  4. -1-2-3
The star unpacks the list into three arguments, joined by the sep string.
Play Problem Solving ▸