python function returns two values code example Example: python return multiple values def x(): return 1, 2, 3, 4 a, b, c, d = x() print(a, b, c, d) # 1 2 3 4