Gire la lista a la cadena con comas python
a_list = ["a", "b", "c"]
joined_string = ",".join(a_list)
Real Raccoon
a_list = ["a", "b", "c"]
joined_string = ",".join(a_list)
hobbies = ["basketball", "football", "swimming"]
print("My hobbies are:") # My hobbies are:
print(", ".join(hobbies)) # basketball, football, swimming
>>> my_string = 'A,B,C,D,E'
>>> my_list = my_string.split(",")
>>> print my_list
['A', 'B', 'C', 'D', 'E']
converted_list = [str(element) for element in a_list]