Last Name First
This exercise is for collaborative work during class. Do not fill out early!
Sign in to Google to save your progress. Learn more
These questions are about the LastNameFirst APT and coding it
Which one of the following for a name are likely special cases, that one general algorithm may not work for them? *
Required
Assume the parameter name is given a String with five words. The first few lines of the function with that parameter is:
def modify(name):
    pos1 = name.find(" ")
    pos2 = name.rfind(" ")
Which of the following calculates a string with just  the middle part, that is a string of just the middle names? *
Required
Which one of the following could be the next line that would result in answer assigned to the lastname, firstname and ignoring the middle names? For example, if name is "John Jacob Joe Something Smith" then answer should be assigned to "Smith, John" *
Here is another approach. Assume the parameter name is given a String with five words. Consider the following first few lines of the function.
def modify(name):
     words = name.split()

Which one of the following could be the next line that would result in answer assigned to the lastname, firstname and ignoring the middle names? For example, if name is "John Jacob Joe Something Smith" then answer should be assigned to "Smith, John" *
Required
Names and Netids below
netid *
netid (partner)
netid (partner)
netid (partner)
Names (comma separated) *
Submit
Clear form
Never submit passwords through Google Forms.
This content is neither created nor endorsed by Google. Report Abuse - Terms of Service - Privacy Policy