I have a string
string = 'One Hundred Two Thousand Nine'
how can i make all words be lower cases except first word.
So output should be like
string = 'One hundred two thousand nine'
I have a string
string = 'One Hundred Two Thousand Nine'
how can i make all words be lower cases except first word.
So output should be like
string = 'One hundred two thousand nine'
There is a built-in function to do this:
string = 'One Hundred Two Thousand Nine'
print(string.capitalize())