title() function in python

# title() title function capitalises the first letter of string and make other 
# letter lower case.
a=input('Enter a string :')
print(b,': is the modified string')
# output:
Enter a string :hII hOW aRE yOU
Hii How Are You : is the modified string

Here is what the above code is Doing:
1. We take input from the user and store it in a variable.
2. We use the title() function to modify the string.
3. We print the modified string.