Skip to content

Instantly share code, notes, and snippets.

@segdeha
Created May 27, 2016 20:35
Show Gist options
  • Save segdeha/caaf1a09c124f4ba23ff7b3aba6f4c8f to your computer and use it in GitHub Desktop.
Save segdeha/caaf1a09c124f4ba23ff7b3aba6f4c8f to your computer and use it in GitHub Desktop.
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