Concat item in list python
It's very useful for beginners to know why join is a string method. Show
It's very strange at the beginning, but very useful after this. The result of join is always a string, but the object to be joined can be of many types (generators, list, tuples, etc).
Once you learn it, it's very comfortable and you can do tricks like this to add parentheses. This article describes how to concatenate strings in Python.
Concatenate multiple strings: +, += operator
|