input: 
  def translate_to_python(source_code: str) -> str:
      """
      Translates the given JavaScript code into Python code.
      Example:
      >>> translate_to_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)"
      """
  
output:     lines = source_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 'console.log(' in line:
              line = line.replace('console.log(', 'print(')
          if '.forEach(' in line:
              line = line.replace('.forEach(', 'for ')
              line = line.replace('{', '')
              line = line.replace('}', '')
              line = line.replace(');', '')
              line = line.replace('item =>', 'item in')
          python_code.append(line)
  
      return '\n'.join(python_code)