Last active
December 12, 2015 09:49
-
-
Save greggyNapalm/4754553 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#var 1 | |
>>> a = ['34', 'Brown'] | |
>>> b = {} | |
>>> b[a[0]] = a.append(0) | |
>>> b | |
{'34': None} | |
#var2 | |
>>> a = ['34', 'Brown'] | |
>>> a.append(0) | |
>>> b[a[0]] = a | |
>>> b | |
{'34': ['34', 'Brown', 0]} | |
# Is it possible to do L10-L11 calls in one line? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment