Needed to be iterable, and range needs an integer argument