<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">def last_name_first(full_name):
   """Returns: copy of full_name in the form &lt;last-name&gt;, &lt;first-name&gt;

   full_name: has the form &lt;first-name&gt; &lt;last-name&gt; with one or more
   blanks between the two names"""

   #get index of space after first name
   space_index = full_name.find(' ')

   #get first name
   first = full_name[:space_index]

   #get last name
   last  = full_name[space_index+1:]

   #return "&lt;last-name&gt;, &lt;first-name&gt;"
   return last+', '+first


</pre></body></html>