<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_title(soup):
 """Given a soup, pick out a title"""

  if soup.title:
    return soup.title.string
  if soup.h1:
    return soup.h1.string
  return ''