Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

add all string elements in list python

l = ['hello', 'geek', 'have',
   'a', '1', 'day']
  
# this will join all the 
# elements of the list with ' '
l = ' '.join(l) 
print(l)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #add #string #elements #list #python
ADD COMMENT
Topic
Name
3+6 =