Created
January 18, 2019 06:21
-
-
Save mahmoud/f19641c7d44922e1defb9b284951f3e7 to your computer and use it in GitHub Desktop.
Revisions
-
mahmoud created this gist
Jan 18, 2019 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ >>> x = [1] >>> y = (2, 3) >>> x + y Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: can only concatenate list (not "tuple") to list >>> x += y >>> x [1, 2, 3]