input: 
  def rewrite_in_python(input_code: str) -> str:
      """Given a snippet of JavaScript code, rewrite it in Python.
      >>> rewrite_in_python("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:     lines = input_code.split('\n')
      python_code = []
      for line in lines:
          if 'let arr' in line:
              python_code.append(line.replace('let ', '').replace(';', ''))
          elif 'arr.forEach' in line:
              python_code.append('')
              python_code.append('for item in arr:')
          elif 'console.log' in line:
              python_code.append(' print(' + line.split('(')[1].replace(');', ')'))
      return '# Python code\n' + '\n'.join(python_code)