Back
I want
s = 'the brown fox'
as
s should be :'The Brown Fox'
What's the easiest way to do this?
You can use the title method on the string in python. Like this:
s = "the brown fox"s =s.title()print(s)
s = "the brown fox"
s =s.title()
print(s)
The output will be: "The Brown Fox"
31k questions
32.8k answers
501 comments
693 users