input: 
  def translate_programming_language(input_code: str) -> str:
      """ Given a piece of code in one programming language (input_code), translate it 
      to another programming language and return the translated code as a string.
      >>> translate_programming_language('''// JavaScript code
  let arr = [1, 2, 3, 4, 5];
  
  arr.forEach(item => {
   console.log(item * 2);
  });''')
      '# Python code\narr = [1, 2, 3, 4, 5]\n\nfor item in arr:\n print(item * 2)'
      """
  
output:     input_code = input_code.strip()
      if input_code.startswith('// JavaScript code'):
          input_code = input_code.replace('// JavaScript code', '# Python code')
          input_code = input_code.replace('let ', '')
          input_code = input_code.replace('arr.forEach(item => {', 'for item in arr:')
          input_code = input_code.replace('});', '')
          input_code = input_code.replace('console.log(', 'print(')
          input_code = input_code.replace(';', '')
          return input_code
      return input_code