what if we multiply a string in python

Solutions on MaxInterview for what if we multiply a string in python by the best coders in the world

showing results for - "what if we multiply a string in python"
David
03 Sep 2016
1#Python 2.x:
2#print 'string' * (number of iterations)
3print '-' * 3
4
5
6#Python 3.x:
7#print ('string' * (number of iterations))
8print('-' * 3)