input: 
  def rewrite_code_in_python(code: str) -> str:
      """ Rewrites the given JavaScript code snippet into an equivalent Python code snippet.
      
      >>> rewrite_code_in_python('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:     lines = code.split('\\n')
      python_code = []
  
      for line in lines:
          if 'let ' in line:
              line = line.replace('let ', '')
          if 'var ' in line:
              line = line.replace('var ', '')
          if 'const ' in line:
              line = line.replace('const ', '')
          if '=>' in line:
              line = line.replace('=>', ':')
          if 'forEach' in line:
              line = line.replace('forEach', 'for')
              line = line.replace('{', '')
              line = line.replace('}', '')
              line = line.replace('console.log', 'print')
          if ';' in line:
              line = line.replace(';', '')
          python_code.append(line)
  
      return '\\n'.join(python_code)