'How to get value in for loop based on certain element

I have a list. I want to get value from the last finished sentence. Like last "." not first, second or third.

lst = ["1st", "2nd", "?", "3rd", ".", "4th", "5th", "6th", ".", "7th", "8th"]

I am trying to achieve

Output: 1st 2nd? 3rd. 4th 5th 6th.

How can I do this by for loop instead of indexing? Indexing won't work because There are unlimited lists and each time last "." position can be different.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source