Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
In [17]: (a, (b)) = (1, (2,3, ([4,5,6])))                                                                                                                     

In [18]: b                                                                                                                                                    
Out[18]: (2, 3, [4, 5, 6])

In [19]: (a, (b,e,(f))) = (1, (2,3, ([4,5,6])))                                                                                                               

In [20]: a                                                                                                                                                    
Out[20]: 1

In [21]: b                                                                                                                                                    
Out[21]: 2

In [22]: e                                                                                                                                                    
Out[22]: 3

In [23]: f                                                                                                                                                    
Out[23]: [4, 5, 6]
In [35]: (a, (b,e,(f,*g,h))) = (1, (2,3, ([4,6])))                                                                                                            

In [36]: f                                                                                                                                                    
Out[36]: 4

In [37]: h                                                                                                                                                    
Out[37]: 6

In [38]: g                                                                                                                                                    
Out[38]: []
@ToddG
Copy link

ToddG commented Oct 26, 2019

in lines [38-39], why isn't g 6 and h []?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment