Dec-03-2017, 03:28 PM
hi. i have a text and i need to get all first letters/numbers of each word, capitalize and put a dot after each one.
the
text='''kldjsh sdfbdb dbsd 67 dshss''' one=[x[0] for x in text.strip() ] print(one)with the above code i did manage to get the first letter of each word but i miss the upper case, the dot and a space after each word. some help please?
i tried
print(one.upper())but it returns error.