Answers for "define new list with upper character 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 "TypeScript"

Browse Popular Code Answers by Language