I tried to map the index where spaces are provided in a given string. But the problem was I couldn't find the index of multiple spaces. Only the first space index was shown.
This is my sample explanation:
Y="Hell o World!"
print(Y.index(" "))
Output: 4
I'm not able to map the space on index: 6