input: 
  def rewrite_code(code: str, lang: str) -> str:
      """ This function will rewrite the provided code in a specified programming language.
      The code will be transformed from its original language to the specified target language.
      
      Example:
      rewrite_code("// JavaScript code\nlet arr = [1, 2, 3, 4, 5];\narr.forEach(item => {\n console.log(item * 2);\n});", "Python")
      Output: "arr = [1, 2, 3, 4, 5]\nfor item in arr:\n print(item * 2)"
      """
  
output:     if lang == "Python":
          code = code.replace("let ", "")
          code = code.replace("var ", "")
          code = code.replace("const ", "")
          code = code.replace("=>", ":")
          code = code.replace("forEach(", "for ")
          code = code.replace("console.log(", "print(")
          code = code.replace(");", ")")
          code = code.replace("}", "")
          code = code.replace("{", "")
          code = code.replace(";", "")
          return code
      else:
          return "Unsupported language"