Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to multiply a string in python

#Python 2.x:
#print 'string' * (number of iterations)
print '-' * 3


#Python 3.x:
#print ('string' * (number of iterations))
print('-' * 3)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #multiply #string #python
ADD COMMENT
Topic
Name
6+5 =