Python program to find start and end indices of all Words in a String
Given a String, return all the start indices and end indices of each word. Examples: Input : test_str = ' Geekforgeeks is Best' Output : [(1, 12), (16, 17), (19, 22)] Explanation : "Best" Starts at 19th index, and ends at 22nd index. Input : test_str = ' Geekforgeeks is Best' Output : [(1, 12), (17,