Created
May 27, 2016 20:35
-
-
Save segdeha/caaf1a09c124f4ba23ff7b3aba6f4c8f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
bob = [ | |
['a', 'b'], | |
['c', 'd'], | |
['e', 'f', 'g'], | |
['i'], | |
['j', 'k'], | |
['l', 'm'], | |
['n'] | |
] | |
for i in bob: | |
for j in i: | |
print(j) | |
jim = { | |
'a': {'b': 'c'}, | |
'd': {'e': 'f'}, | |
'g': {'h': 'i'}, | |
} | |
for k in jim: | |
print(k) | |
for k2 in jim[k]: | |
print(k2) | |
print( | |
jim[k][k2] | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment