I want to make a dictionary using a string, and count the words of that string. This is what I've done but it's giving me an error!
book_text = "if it exists it should print"
for word in book_text:
word = book_text.split(" ")
print(word)
dictionary = {}
for i in word:
dictionary.values(i)
dictionary.keys(word.count(i))
print(dictionary)
Error says values takes more than one element