Answers for "python print \n every n loops"

0

python print \n every n loops

for x in 100:
    #what to do every time (100 times): replace this line with your every-iteration functions.
    if x % 5 == 0:
        #what to do every 5th time: replace this line with your nth-iteration functions.
Posted by: Guest on April-01-2021

Python Answers by Framework

Browse Popular Code Answers by Language