How to capitalize the first letter of a string in Python

1 Answer

0 votes
s = 'python programming language'
 
print(s)
 
s = s.capitalize()
 
print(s)
 
 
 
'''
run:
 
python programming language
Python programming language
 
'''

 



answered Apr 13, 2021 by avibootz
...