I working on a project to correct grammatically wrong sentence to correct one. How do I use python to replace the word in between 2nd and 3rd space to the correct one?
I need the search for what to replace to be the position not search for exact word and replace it.
S = "Nothing is absolute right or wrong ."
Position -> 2 and 3 (this position is the position of space to replace the word between 2nd space and 3rd space)
Replace "absolute" with "absolutely"