<human>:  using next to iterate.
<bot>: Here is a Python program for using next to iterate
from typing import Iterable

import itertools

def _next(iterable):
  """
  Use next to iterate
  """
  try:
    return next(iterable)
  except StopIteration:
    raise ValueError("Iterable is empty")

# Enter the iterable
iterable = itertools.count()

# Calling the function
print((_next(iterable)))

#Example Output
# 0

#Remember to inspect code for bugs.