input: 
  from typing import List
  
  def rewrite_code(language: str, code: str) -> str:
      """Given a programming language and a code snippet in that language, rewrite the snippet in another programming language.
      >>> rewrite_code("JavaScript", "let arr = [1, 2, 3, 4, 5];\\n\\narr.forEach(item => {\\n console.log(item * 2);\\n});")
      '# Python code\\narr = [1, 2, 3, 4, 5]\\n\\nfor item in arr:\\n print(item * 2)'
      """
  
output:     if language == "JavaScript":
          return "# Python code\n" + code.replace("let ", "").replace("arr", "arr = [1, 2, 3, 4, 5]").replace("arr.forEach(item => {\n console.log(item * 2);\n});", "for item in arr:\n print(item * 2)")