290,319 views
31 votes
31 votes
How to print name 100 times in python

User DeGoot
by
3.0k points

1 Answer

18 votes
18 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 Knuth
by
2.7k points