Python: Difference between revisions

Line 315: Line 315:
# Tuple with multiple elements
# Tuple with multiple elements
vals = (1,2,3, "car")
vals = (1,2,3, "car")
# Return a tuple
def int_divide(a, b):
  return a//b, a % b
</syntaxhighlight>
</syntaxhighlight>