Q:

Write a Python program to create a list with infinite elements

0

Write a Python program to create a list with infinite elements

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

import itertools
c = itertools.count()
print(next(c))
print(next(c))
print(next(c))
print(next(c))
print(next(c))

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now