Skip to content

Instantly share code, notes, and snippets.

@haus
Created May 1, 2012 01:10
Show Gist options
  • Save haus/2564118 to your computer and use it in GitHub Desktop.
Save haus/2564118 to your computer and use it in GitHub Desktop.
Python 2.7.1 (r271:86832, Jun 16 2011, 16:59:05)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> a=()
>>> a+=(2,)
>>> print(a)
(2,)
>>>
Python 3.2.2 (default, Apr 5 2012, 18:13:42)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> a=()
>>> a+=(12,)
>>> print(a)
(12,)
>>> a+=(24,)
>>> print(a)
(12, 24)
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment