How to capitalize first character of string in Python

1 Answer

0 votes
s = 'python java c c++ php'

s = s.capitalize()

print(s)



'''
run:
    
Python java c c++ php
  
'''

 



answered Oct 28, 2020 by avibootz

Related questions

...