# name.py # Walker M. White (wmw2), Anne Bracy (awb93) # Feburary 11, 2018 """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(full_name): """Returns: copy of full_name in the form 'last-name, first-name' full_name: has the form with one or more blanks between the two names""" space_index = full_name.find(' ') first = full_name[:space_index] last = full_name[space_index+1:] return last+', '+first