Capitalising the first letter of a sentence using .capitalize()
works fine. Except when the first word of the sentence is an acronym like 'IBM' or 'SIM', which get lowercased (except for the first letter). For example:
L = ["IBM", "announced", "the", "acquisition."]
L = [L[0].capitalize()] + L[1:]
L = " ".join(L)
print(L)
gives:
"Ibm announced the acquisition."
But I would like this:
"IBM announced the acquisition."
Is there a way to avoid this - e.g. by skipping acronyms - while still outputting capitalised sentences like below?
"IBM's CEO announced the acquisition."
"The IBM acquisition was announced."