input: def rewrite_code(language: str, code: str) -> str:
      """
      Rewrite the given code in a different programming language.
  
      >>> rewrite_code("Python", "let arr = [1, 2, 3, 4, 5];\n\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:     if language == "Python":
          code = code.replace("let ", "")
          code = code.replace("arr.forEach(item => {", "for item in arr:")
          code = code.replace("});", "")
          code = code.replace("console.log(", "print(")
          code = code.replace(";", "")
          return code