input: 
  def rewrite_javascript_to_python(code: str) -> str:
      """ Rewrite the given JavaScript code into equivalent Python code.
      >>> rewrite_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)"
      """
  
output:     arr = code.split(';')[0].replace('let ', '')
      for_loop = code.split(';')[1].replace('arr.forEach(item => {', 'for item in arr:').replace('console.log', 'print').replace('});', '')
      return f"{arr}\n\n{for_loop}"