return tuple python

Solutions on MaxInterview for return tuple python by the best coders in the world

showing results for - "return tuple python"
Mats
11 May 2020
1def foo():
2  return "hello", "world", 21
3
4t = foo() # returns ('hello', 'world', 21)
5
6a, b, c = foo() # a = "hello", b = "world", c = 21
queries leading to this page
return tuple pythonreturn tuple python