input: from typing import List
  
  def rewrite_code_in_python(code: str) -> str:
      """
      Given a code snippet written in JavaScript, rewrite it in Python.
  
      >>> rewrite_code_in_python('let arr = [1, 2, 3, 4, 5];\\n\\narr.forEach(item => { console.log(item * 2); });')
      'arr = [1, 2, 3, 4, 5]\\n\\nfor item in arr:\\n print(item * 2)\\n'
      """
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('forEach(', 'for ')
      code = code.replace('item =>', 'item in')
      code = code.replace('{', '')
      code = code.replace('}', '')
      code = code.replace(';', '')
      code = code.replace('\\n', '\n')
      return code