I have this problem I am stuck on, no idea how to solve it. Its on dictionaries in python/pycharm 3.0.1. For each word in the sentence given you are to check if it exists in the dictionary. If it does, replace it with the value from the dictionary. Use split to add back spaces when adding new words to the new string(newString) then print out the new sentence and loop through the list created by split and add the word to newString and add a space.
sentence =”I had such a horrible day. It was awful so bad sigh. It could not have been worse but actually though “