input: def translate_to_python(code: str) -> str:
      """
      Translates a given JavaScript code snippet to an equivalent Python code.
      >>> translate_to_python("let arr = [1, 2, 3, 4, 5];\narr.forEach(item => {console.log(item * 2);});")
      "arr = [1, 2, 3, 4, 5]\nfor item in arr:\n print(item * 2)"
      """
output:     code = code.replace("let ", "")
      code = code.replace("var ", "")
      code = code.replace("const ", "")
      code = code.replace("=>", ":")
      code = code.replace("console.log(", "print(")
      code = code.replace(");", ")")
      code = code.replace("forEach(", "for ")
      code = code.replace("item => {", "item in ")
      code = code.replace("});", "")
      code = code.replace(";", "")
      return code