String title
Disclaimer: This post has been translated to English using a machine translation model. Please, let me know if you find any mistakes.
Let's suppose we have the following string
string = "This is a string"print(string)
This is a string
Python has a method to see the first letter of each word in uppercase, the method is called title()
print(string.title())
This Is A String