repeat iterator

Solutions on MaxInterview for repeat iterator by the best coders in the world

showing results for - "repeat iterator"
Simón
01 Jan 2017
1# Python code to demonstrate the working of  
2# repeat() 
3     
4# importing "itertools" for iterator operations 
5import itertools 
6     
7# using repeat() to repeatedly print number 
8print ("Printing the numbers repeatedly : "9print (list(itertools.repeat(25, 4)))
10
similar questions
queries leading to this page
repeat iterator