What I learned today

황병희 soyeomul at doraji.xyz
Mon Feb 17 08:15:43 EST 2020


ram at zedat.fu-berlin.de (Stefan Ram) writes:

>   ...
>   But the book told me that you can unzip using ... »zip« again!
>
> z = zip( x, y )
> a, b = zip( *z )
> print( a )
>                                       ('y', 'n', 'a', 'n', 't')
> print( b )
>                                                 (4, 2, 7, 3, 1)
>
>   Wow!

Usally i use zip so many, thanks for tip^^^

Sincerely, Byung-Hee

-- 
^고맙습니다 _地平天成_ 감사합니다_^))//


More information about the Python-list mailing list