Answers for "make a list from a string"

0

how to convert a list to a string in python

array = []
STR = ''
for i in array:
    STR = STR+i
Posted by: Guest on May-24-2020
0

python3 create list from string

input = ['word1, 23, 12','word2, 10, 19','word3, 11, 15']
output = []
for item in input:
    items = item.split(',')
    output.append([items[0], int(items[1]), int(items[2])])
Posted by: Guest on September-16-2020

Code answers related to "make a list from a string"

Python Answers by Framework

Browse Popular Code Answers by Language