Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # В тюпл (tuple)
- def fun(param):
- if param:
- return ('foo' , 'bar', 'one', 'two')
- else:
- return (None, None, None, None)
- # В лист
- def fun(param):
- if param:
- return ['foo' , 'bar', 'one', 'two']
- else:
- return [None, None, None, None]
Advertisement
Add Comment
Please, Sign In to add comment