Answers for "capitalize specific letter in python"

0

how to capitalize the first letter in a list python

singers = ['johnny rotten', 'eddie vedder', 'kurt kobain', 'chris cornell', 'micheal phillip jagger']
    singers = [singer.capitalize() for singer in singers]
    print(singers)

   #instead of capitalize use title() to have each word start with capital letter
Posted by: Guest on April-19-2020
2

python capitalize the entire string

message="hi"
print(message)
print(message.upper())
Posted by: Guest on January-09-2020

Code answers related to "capitalize specific letter in python"

Python Answers by Framework

Browse Popular Code Answers by Language