what if we multiply a string in python

Do you want to know the information about “what if we multiply a string in python”. If yes, you’re in the correct article.

what if we 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)

Final Words

I hope this tutorial helps you to know about “what if we multiply a string in python”. If you have any queries regarding this post please let us know via the comment section. Share this post with your friends and family via social networks.

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coder Diksha. Here, I post about programming to help developers.

Share on:

Leave a Comment