How do you turn the list from one element into a line?
-
I have a list.
I need to change that list to the line. Out the way:
Random word
No skirts and brackets.
''. join() Не работает
Help me, please!
-
I think it works.
data = ['Рандомное слово'] text = ''.join(data) print(text) # выводится Рандомное слово
Second option:
import re
keys = re.findall(r'равно(.*?)отправить', 'равно 12 отправить равно 100 отправить')
keys = ''.join(keys)print(keys) # выводится 12 100