Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to make a list with the same string in python

''' create a list by [] and multiply by repeat count '''
listOfStrings1 = ['Hi'] * 20
 
PREVIOUS NEXT
Tagged: #list #string #python
ADD COMMENT
Topic
Name
9+1 =