Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

I have this problem I am stuck on, no idea how to solve it. Its on dictionaries in python/pycharm 3. For each word in the sentence given you are to...

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 "
Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question