Python: Difference between revisions

61 bytes added ,  13 July 2020
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>