Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

How to make a function repeat itself a specifc amount of times python

 pythonCopyimport itertools

num = 10
for _ in itertools.repeat(None, num):
    #code
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #How #function #repeat #specifc #amount #times #python
ADD COMMENT
Topic
Name
3+8 =