input: Write a function to convert the given JavaScript code into Python code. The JavaScript code iterates over an array, multiplies each element by 2, and logs the result to the console. The function should return the equivalent Python code as a string.
  def convert_js_to_python(js_code):
      # Function implementation to convert the JavaScript code to Python code
      # Logic for conversion
      return python_equivalent_code
      
  assert convert_js_to_python("// JavaScript code\nlet arr = [1, 2, 3, 4, 5];\narr.forEach(item => {\n console.log(item * 2);\n});\n") == "# Python code\narr = [1, 2, 3, 4, 5]\n\nfor item in arr:\n print(item * 2)"
  assert convert_js_to_python("") == ""
  assert convert_js_to_python("let array = [10, 20, 30]; array.forEach((el) => console.log(el + 10));") == "# Python code\narr = [10, 20, 30]\n\nfor el in arr:\n print(el + 10)"
output: def convert_js_to_python(js_code):
      if not js_code:
          return ""
      js_code = js_code.strip()
      if "let" in js_code:
          js_code = js_code.replace("let ", "")
      if "array" in js_code:
          js_code = js_code.replace("array", "arr")
      if "forEach" in js_code:
          js_code = js_code.replace("forEach", "for")
      if "=>" in js_code:
          js_code = js_code.replace("=>", ":")
      if "console.log" in js_code:
          js_code = js_code.replace("console.log", "print")
      if "(" in js_code:
          js_code = js_code.replace("(", "")
      if ")" in js_code:
          js_code = js_code.replace(")", "")
      if "{" in js_code:
          js_code = js_code.replace("{", "")
      if "}" in js_code:
          js_code = js_code.replace("}", "")
      if ";" in js_code:
          js_code = js_code.replace(";", "")
      js_code = js_code.replace("arr", "# Python code\narr")
      return js_code