lad1337

Untitled

Apr 15th, 2012
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. >>> a = (b,)+c
  2. Traceback (most recent call last):
  3. File "<stdin>", line 1, in <module>
  4. NameError: name 'b' is not defined
  5. >>> a = 1
  6. >>> b = 2
  7. >>> c = 3
  8. >>> a = (b,)+c
  9. Traceback (most recent call last):
  10. File "<stdin>", line 1, in <module>
  11. TypeError: can only concatenate tuple (not "int") to tuple
  12. >>> c = (1)
  13. >>> a = (b,)+c
  14. Traceback (most recent call last):
  15. File "<stdin>", line 1, in <module>
  16. TypeError: can only concatenate tuple (not "int") to tuple
  17. >>> x = (2,)+(1)
  18. Traceback (most recent call last):
  19. File "<stdin>", line 1, in <module>
  20. TypeError: can only concatenate tuple (not "int") to tuple
  21. >>> x = (2,)+("s","a")
  22. >>> x
  23. (2, 's', 'a')
  24. >>> x = (2,)+("s")
  25. Traceback (most recent call last):
  26. File "<stdin>", line 1, in <module>
  27. TypeError: can only concatenate tuple (not "str") to tuple
  28. >>>
Advertisement
Add Comment
Please, Sign In to add comment