# name.py # Walker M. White (wmw2) # August 31, 2012 """Module with a single, non-working function. The function in this module has a bug (in the sense that it does not satisfy its specification). This allows us to show off debugging.""" def last_name_first(n): """Returns: copy of n but in the form 'last-name, first-name' Precondition: n is in the form 'first-name last-name' with one or more blanks between the two names no spaces in or """ end_first = n.find(' ') first = n[:end_first] last = n[end_first+1:] return last+', '+first