Advertisement
user_137

Untitled

Aug 24th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. >>> def p1():
  2. ...     return (5, ('fred'))
  3.  
  4. >>> def p2():
  5. ...     return 5, 'fred'  # yes this is a tuple
  6.  
  7. >>> p1()
  8. (5, 'fred')
  9.  
  10. >>> p2()
  11. (5, 'fred')
  12.  
  13. >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement