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… | Cheap Nursing Papers

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 “

"Get 15% discount on your first 3 orders with us"
Use the following coupon
FIRST15

Order Now

Hi there! Click one of our representatives below and we will get back to you as soon as possible.

Chat with us on WhatsApp