Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
How will you convert a list into a string?
Home
Python Flask
How will you convert a list into a string?
0
votes
asked
May 11, 2023
in
Python Flask
by
sharadyadav1986
How will you convert a list into a string?
stringlist
pythonlist
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
May 11, 2023
by
sharadyadav1986
We will use the join() method for this.
>>> nums=['one','two','three','four','five','six','seven']
>>> s=' '.join(nums)
>>> s
‘one two three four five six seven’
...