Use python programming: Capitalise first letter of each word in a sentence
Python code:
#accepting the sentence and converting it into a list of
words
sentence=input().split()
#capitalizing each word and converting it back to string
capitalized=" ".join([i.capitalize() for i in sentence])
#printing the capitalized string
print(capitalized)
Screenshot:
Input and Output:
Get Answers For Free
Most questions answered within 1 hours.