Capitalising_first_letter.py


Sign up Free. Don't forget to check out our challenges, lessons, solve and learn series and more ...


Code Snippet



fullname=input("Enter Full Name:")

#if the user enters lower case names, capitalise both names for them automatically

#this makes just the FIRST letter of the whole string a capital letter
fullname=fullname.capitalize()
print(fullname)

#This capitalises the first letter of EVERY word
fullname=fullname.title()
print(fullname)
                    

Try it yourself