Answers for "python ltrim multiline string"

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

Python Answers by Framework

Browse Popular Code Answers by Language