I want to concatenate items in a list if the last character of the list is not a "."
l=["First item","Second item","Third item.","Fourth item."]
abc=[element for element in l if not element[-1]=="."]
I tried to use a list comprehension but I don't know how to concatenate two items using list comprehension.
What I want:
abc=["First itemSecond itemThird item.","Fourth item."]