Let's assume I want to write a row in a csv file. This row will be something like:
name,last_name,birthday,hobby1,hobby2,hobby3, ... , hobby200
I can create an array like ['name', 'last_name' .... ] but is there any possible way to set a range o
Let's assume I want to write a row in a csv file. This row will be something like:
name,last_name,birthday,hobby1,hobby2,hobby3, ... , hobby200
I can create an array like ['name', 'last_name' .... ] but is there any possible way to set a range o
From what I can tell, you're trying to convert:
['name', 'last_name' .... ]
into a string:
name,last_name,birthday,hobby1,hobby2,hobby3, ... , hobby200
Here's how you convert an array into a comma-separated string:
myList = ['name', 'last_name', 'birthday']
myString = ','.join(myList)
print(myString)