Word to Chars

word = "Toronto"
word
'Toronto'
type(word)
str
letters = word.split()
type(letters)
list
for l in letters:
    print(l, type(l))
Toronto <class 'str'>
len(letters)
1
chars = list(word)
type(chars)
list
for c in chars:
    print(c, type(c))
T <class 'str'>
o <class 'str'>
r <class 'str'>
o <class 'str'>
n <class 'str'>
t <class 'str'>
o <class 'str'>
len(chars)
7
# list(string) will get us characters, but split will get us strings
[c for c in word]
['T', 'o', 'r', 'o', 'n', 't', 'o']
[c for c in word.split()]
['Toronto']
word.split()
['Toronto']