How to capitalize the first letter of each word in a string with Python

1 Answer

0 votes
s = 'python programming language'

s = s.title()

print(s)

print('python programming language'.title())


'''
run:

Python Programming Language
Python Programming Language

'''

 



answered Jan 26, 2017 by avibootz
edited Feb 1, 2017 by avibootz

Related questions

...