Skip to content

Instantly share code, notes, and snippets.

@seanjensengrey
Created October 26, 2019 19:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seanjensengrey/babaeeb7ce2a4c4e40525dc3e8a4a2c8 to your computer and use it in GitHub Desktop.
Save seanjensengrey/babaeeb7ce2a4c4e40525dc3e8a4a2c8 to your computer and use it in GitHub Desktop.
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