Guest User

Untitled

a guest
May 30th, 2015
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. # В тюпл (tuple)
  2. def fun(param):
  3.     if param:
  4.         return ('foo' , 'bar', 'one', 'two')
  5.     else:
  6.         return (None, None, None, None)
  7. # В лист
  8. def fun(param):
  9.     if param:
  10.         return ['foo' , 'bar', 'one', 'two']
  11.     else:
  12.         return [None, None, None, None]
Advertisement
Add Comment
Please, Sign In to add comment