Answers for "return tuple python"

1

return tuple python

def foo():
  return "hello", "world", 21

t = foo() # returns ('hello', 'world', 21)

a, b, c = foo() # a = "hello", b = "world", c = 21
Posted by: Guest on May-30-2021

Python Answers by Framework

Browse Popular Code Answers by Language