Answers for "multiplying a string with a list"

2

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)
Posted by: Guest on May-19-2021

Code answers related to "multiplying a string with a list"

Python Answers by Framework

Browse Popular Code Answers by Language