input: Write a function to translate the given JavaScript code into Python code. If the input is an empty string, return an empty string.
  assert convert_javascript_to_python("let arr = [1, 2, 3, 4, 5];\narr.forEach(item => {\n console.log(item * 2);\n});")=="arr = [1, 2, 3, 4, 5]\n\nfor item in arr:\n print(item * 2)"
  assert convert_javascript_to_python("")==""
  assert convert_javascript_to_python("let arr = [5, 6, 7];\narr.forEach(item => {\n console.log(item + 1);\n});")=="arr = [5, 6, 7]\n\nfor item in arr:\n print(item + 1)"
  assert convert_javascript_to_python("let arr = [1, 2, 3];\narr.forEach(item => {\n console.log(item ** 2);\n});")=="arr = [1, 2, 3]\n\nfor item in arr:\n print(item ** 2)"
  assert convert_javascript_to_python("let arr = [4, 5, 6];\narr.forEach(item => {\n console.log(item / 2);\n});")=="arr = [4, 5, 6]\n\nfor item in arr:\n print(item / 2)"
output: def convert_javascript_to_python(js_code):
      if js_code == "":
          return ""
      lines = js_code.split("\n")
      arr_line = lines[0]
      operation_line = lines[2]
      arr_var = arr_line.split(" = ")[0]
      arr_value = arr_line.split(" = ")[1].strip(";")
      operation = operation_line.split("console.log(")[1].strip(");")
      python_code = f"{arr_var} = {arr_value}\n\nfor item in {arr_var}:\n print({operation})"
      return python_code