Why if I write these lines of code it give me back "TypeError: 'dict_items' object is not callable" and not " ['w', 'o', 'r', 'd'] " ?
If I use python directly on the prompt it works.
word = "word"
list_of_letters = list(word)
print(list_of_letters)
If I use python directly on the prompt it works.
word = "word"
list_of_letters = list(word)
print(list_of_letters)