Python Exercise Example 84
**Problem:** Concatenate strings.
**Analysis:** None.
Example (Python 2.0+)
#!/usr/bin/python
-- coding: UTF-8 --
delimiter
=
'
,
'
mylist
=
[
'
Brazil
'
,
'
Russia
'
,
'
India
'
,
'
China
'
]
delimiter
.
join
(
mylist
)
The output of the above example is:
Brazil,Russia,India,China
Python 100 Examples