Use of capitalize() and split() - Python Language
1148
Arnab De
17/12/2020
Write a program to input a name from user, now convert the name into initial format
For example,
Input: rabinDra naTH taGOrE
Output: Rabindra Nath Tagore
name=input("Enter A Name : ")
name=name.lower()
namepart=name.split()
newname=""
for word in namepart:
newname = newname + word.capitalize() + " "
newname=newname.strip()
print(newname);