pythonJoin list elements into string
Usage example
list = ['hi', 'you', 'all']
str = ' '.join(list)
print(str)
output
hi you all
More of Python
- How to get yesterday's date
- How to print a list without brackets
- How to swap two variables values
- How to split string by space
- How to read yaml file
- How to use regex
- How to get year from date
- How to split string by length
- How to get minutes from datetime
- How to zero pad a number
See more codes...