Gus (๐ค๐ง +๐+๐ฅ๐ฃ๏ธ)
3 years
Imagine you want to pair two sequences into only one:
a = [๐ค,๐ฆ ,๐งฎ]
b = [๐ฅฑ,๐ค,๐ค]
c = [[๐ฅฑ,๐ค],[๐ฆ ,๐ค],[๐งฎ,๐ค]]
Python๐ has the Zip function to do just that!
c = zip(a,b)
But what if you want to go from c back to a and b?