[Solved] How do you explicitly convert a string to a list. Python [duplicate]


First of all, this is neither a string nor a list, but a tuple, as indicated by the round brackets. split is a method of the str class, so it can’t be used here. To convert a tuple t into a list, simply do

list_1 = list(t)

4

solved How do you explicitly convert a string to a list. Python [duplicate]