While loop with counter : While : Statement PYTHON TUTORIALS


PYTHON TUTORIALS » Statement » While »

 

While loop with counter


counter = 0
while counter < 3:
    print 'loop #%d' % (counter)
    counter += 1



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Statement
» While