input: Write a function to identify and fix the syntax error in the given Python program. The function should return the corrected program as a string.
  assert fix_syntax_error("def func(a, b): \n  c = a + b \n  return c \n\na = 4 \n5 = b \nres = func(a, b) \nprint(res)").replace(" ", "")=="deffunc(a,b):\nc=a+b\nreturnc\na=4\nb=5\nres=func(a,b)\nprint(res)".replace(" ", "")
  assert fix_syntax_error("def func2(x, y): \n  sum = x + y \n  return sum \n\nnum1 = 8 \nnum2 = 9 \nresult = func(num1, num2)")=="def func2(x, y):\n  sum = x + y \n  return sum \n\nnum1 = 8 \nnum2 = 9 \nresult = func2(num1, num2) "
  assert fix_syntax_error("def func3(p, q, r): \n  product = p * q * r \n  return product \n\nnum1 = 2 \nnum2 = 3 \nnum3 = 4 \nresult = func3(num1, num2, num3)")=="def func3(p, q, r):\n  product = p * q * r \n  return product \n\nnum1 = 2 \nnum2 = 3 \nnum3 = 4 \nresult = func3(num1, num2, num3) "
  assert fix_syntax_error("def func4(t, u): \n  sum = t + u \n  return sum \n\nt = 7 \nu = 6 \nresult = func4(t, u)")=="def func4(t, u):\n  sum = t + u \n  return sum \n\nt = 7 \nu = 6 \nresult = func4(t, u) "
  assert fix_syntax_error("")=="".replace(" ", "")
output: def fix_syntax_error(program):
      lines = program.split('\n')
      corrected_lines = []
      for line in lines:
          if '=' in line:
              parts = line.split('=')
              if len(parts) == 2:
                  left, right = parts
                  if left.strip().isdigit():
                      left, right = right, left
                      line = f"{left.strip()} = {right.strip()}"
          corrected_lines.append(line)
      return '\n'.join(corrected_lines)