old_contents: # Given a string, return the string made of its first two chars, so the String
  # "Hello" yields "He". If the string is shorter than length 2, return whatever
  # there is, so "X" yields "X", and the empty string "" yields the empty string
  # "".
  
  # first_two('Hello') -> 'He'
  # first_two('abcdefg') -> 'ab'
  # first_two('ab') -> 'ab'
  
  def first_two(str):
      return str[:2]
  
  print(first_two('Hello'))
  print(first_two('abcdefg'))
  print(first_two('ab'))
  
new_contents: # Given a string, return the string made of its first two chars, so the String
  # "Hello" yields "He". If the string is shorter than length 2, return whatever
  # there is, so "X" yields "X", and the empty string "" yields the empty string
  # "".
  
  # first_two('Hello') --> 'He'
  # first_two('abcdefg') --> 'ab'
  # first_two('ab') --> 'ab'
  
  def first_two(str):
      return str[:2]
  
  print(first_two('Hello'))
  print(first_two('abcdefg'))
  print(first_two('ab'))
  
subject: Update first_two.py