def parse_break_str(txt):
 txt = txt.strip()
 if (len(txt.split()) == 2):
  (n, units) = txt.split()
 else:
  (n, units) = (1, txt)
 units = units.rstrip(u's')
 n = int(n)
 return (n, units)

def parse_break_str ( txt ) : txt = txt . strip ( ) if ( len ( txt . split ( ) ) == 2 ) : ( n , units ) = txt . split ( ) else : ( n , units ) = ( 1 , txt ) units = units . rstrip ( u's' ) n = int ( n ) return ( n , units )
parses 10 weeks into tuple .