python multiply strings code example
Example 1: 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)
Example 2: multiplication of string with int in python
#multiplying string with a integer
"superman " * 5
# It will return a new string