Answers for "count iterator"

0

count iterator

# Python program to demonstrate
# infinite iterators
   
import itertools
   
# for in loop
for i in itertools.count(5, 5):
    if i == 35:
        break
    else:
        print(i, end =" ")
Posted by: Guest on August-10-2021

Python Answers by Framework

Browse Popular Code Answers by Language