Answers for "how to multiply a string in python"

2

what if we multiply a string in python

print("Hi you pythonishta \n " * 100)
Posted by: Guest on September-07-2021
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
0

multiplication of string with int in python

#multiplying string with a integer
"superman " * 5
# It will return a new string
Posted by: Guest on May-14-2020

Code answers related to "how to multiply a string in python"

Python Answers by Framework

Browse Popular Code Answers by Language