It’s also not clear whether 4.iter() is supposed to be an iterator of the numbers 1 to 4, or an iterator of one item that is 4, or something else. Although it does mean some more typing, I’d prefer to use existing iterator methods with unambiguous meanings like once() and repeat().take() for simple numeric sequences like that.