How to turn a single word into a list? python

1

How can I create a word in a list? for example:

entrada:
a='carro'
saida:
['c','a','r','r','o']

I know that using split transforms into list gets the whole word, I wonder if as a specific word turn list.

    
asked by anonymous 30.11.2018 / 13:26

1 answer

8

This returns a list with the characters in each position

list(a)

See working in Codinground

link

    
30.11.2018 / 13:29