Answers for "change to first letter capital list python"

0

change to first letter capital 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

Code answers related to "change to first letter capital list python"

Python Answers by Framework

Browse Popular Code Answers by Language