>>> from seleccio import seleccio_valor --ini-enunciat >>> it1 = iter(['hola', 'hola', 'adeu', 'butxaca']) >>> it2 = iter([0, 5, 1, 3]) >>> list(seleccio_valor(it1, it2)) ['h', 'd', 'x'] >>> it1 = iter(['hola', 'hola', 'adeu', 'butxaca', 'amor', 'pare']) >>> it2 = iter([1, 5, 3, 6, 5, 0]) >>> list(seleccio_valor(it1, it2)) ['o', 'u', 'a', 'p'] --fi-enunciat >>> it1 = iter(['bon', 'dia', 'ningú', 'ho', 'ha', 'demanat', 'però', 'us', 'dic', 'bon', 'dia']) >>> it2 = iter([0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4]) >>> list(seleccio_valor(it1, it2)) ['b', 'i', 'n', 'd', 'e', 'd']