“Conatenate List of Strings” Kod odpowiedzi

Pozycja łącząca się na liście do strun

>>> sentence = ['this','is','a','sentence']
>>> '-'.join(sentence)
'this-is-a-sentence'
RosiePuddles

Conatenate List of Strings

#python 3.x
words_list = ['Joey', 'doesnot', 'share', 'food']
print(" ".join(words_list))
Roberto Espinosa

Odpowiedzi podobne do “Conatenate List of Strings”

Pytania podobne do “Conatenate List of Strings”

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu