What is the result of `str.join([‘a’,’b’,’c’])` called as `’-‘.join([‘a’,’b’,’c’])`?

Python Professional Hard

Python Professional — Hard

What is the result of `str.join([‘a’,’b’,’c’])` called as `’-‘.join([‘a’,’b’,’c’])`?

Key points

  • The `join` method combines elements of a list with a specified string.
  • The result is a single string, not a list or tuple.
  • The order of elements in the list determines the order in the final string.

Ready to go further?

Related questions