0 points

How to print a string N numbers of times?


dashboard

Mon Apr 20 2020 13:58:55 GMT+0000 (UTC)

Posted by @Rose lady #python #python #strings

n = 2

s ="Programming"

print(s * n) # ProgrammingProgramming
content_copy Copy

The above code is used to print any string N number of times.

https://towardsdatascience.com/30-helpful-python-snippets-that-you-can-learn-in-30-seconds-or-less-69bb49204172