Q. Write a user-defined function to convert a string with more than one word into title case string where string is passed as parameter. (Title case means that the first letter of each word is capitalized.)
Answer =
def convert(string): lst = string.split() for i in lst: print (i.capitalize(), end = " ") convert("i love my India")
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )