input: from typing import List
  
  def rewrite_code(code_language: str, code_content: str) -> str:
      """
      Given code in one programming language, rewrite it in a different programming language.
      The function assumes the input code is valid and follows the syntax of the provided language.
      
      >>> rewrite_code('JavaScript', '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:     if code_language == 'JavaScript':
          code_content = code_content.replace('let ', '')
          code_content = code_content.replace('const ', '')
          code_content = code_content.replace('var ', '')
          code_content = code_content.replace('=>', '')
          code_content = code_content.replace('console.log(', 'print(')
          code_content = code_content.replace(');', ')')
          code_content = code_content.replace('forEach(', 'for ')
          code_content = code_content.replace('{', '')
          code_content = code_content.replace('}', '')
          code_content = code_content.replace('\\n', '\n')
          return code_content
      else:
          return "Unsupported language"