216k views
2 votes
How to print name 100 times in python

User Kimi
by
6.1k points

1 Answer

5 votes

Answer:

How do you print a name 100 times in python? Use range () to print a string multiple times. Use range (stop) to create a range of 0 to stop where stop is the number of lines desired. Use a for-loop to iterate through this range. In each iteration, concatenate the string to itself by the number of times desired and print the result.

Step-by-step explanation:

User Zyoma
by
6.4k points