If you want to pass values of an iterator to a function, use *iterator
. In the code above, I use *iterator
to avoid hard coding the parameters of the range()
method.
If you want to pass values of an iterator to a function, use *iterator
. In the code above, I use *iterator
to avoid hard coding the parameters of the range()
method.