Featured image of post Print Only First Character Of String In Python : How to write a program such that it would print the first character of each word in the string.

Print Only First Character Of String In Python : How to write a program such that it would print the first character of each word in the string.

My_name = sai sathi bawan my_initals = ''.join([s[:1] for s in my_name.split(' ')]) print(my_initals).