In Python 3, use next(uptofive) instead of uptofive.next().
The built-in next() function also works in Python 2.6 or greater.
In Python 3, use next(uptofive) instead of uptofive.next().
The built-in next() function also works in Python 2.6 or greater.