1.

Write a program in phython to print a text a number of times​

Answer»

Answer:

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.



Discussion

No Comment Found