Skip to content

Instantly share code, notes, and snippets.

@gcorreaq
Last active November 20, 2015 01:35
Show Gist options
  • Save gcorreaq/97207f41e9a6e52cf043 to your computer and use it in GitHub Desktop.
Save gcorreaq/97207f41e9a6e52cf043 to your computer and use it in GitHub Desktop.
In [1]: a = {'asd': 1, 'qwe': 2},
In [2]: b = [{'asd': 3, 'qwe': 4}]
In [3]: b.append(a)
In [4]: b
Out[4]: [{'asd': 3, 'qwe': 4}, ({'asd': 1, 'qwe': 2},)]
In [5]: type(b[1])
Out[5]: tuple
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment