<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def today(boo):
 """ Return today's date as either a String or a Number, as specified by the User. Args: boo: if true, function returns Number (20151230); if false, returns String ("2015-12-30") Returns: either a Number or a string, dependent upon the user's input """

  tod = datetime.strptime(datetime.today().date().isoformat().replace('-', ' '), '%Y %m %d')
  if boo:
    return int(str(tod).replace('-', '')[:8])
  else:
    return str(tod)[:10]