Python, computer programming, Programming Languages

Write a function lastfirst() that takes a list of strings as a parameter. Each string in the list has the format ''Last, First'' where Last is a last name and First is a first name. The function lastfirst() returns a list containing two sublists. The first sublist is a list of all the first names and the second sublist is a list of all the last names. The following shows how the function would be called on an example parameter:

>>> lastfirst([''Gerber, Len'', ''Fox, Kate'', ''Dunn, Bob'']
[[''Len'', ''Kate'', ''Bob''], [''Gerber'', ''Fox'', ''Dunn'']]
Posted Date: 2/20/2012 12:17:02 AM | Location : United States







Related Discussions:- Python, computer programming, Assignment Help, Ask Question on Python, computer programming, Get Answer, Expert's Help, Python, computer programming Discussions

Write discussion on Python, computer programming
Your posts are moderated
Related Questions
This is the programming language of the Web. It is mainly used for validating forms. JavaScript & Java can be associated to each other. There exist several other differences betwee

showing work Ubuntu system or either opensuse

Let the player (denoted U in the diagram below) navigate around the board until she wins the game by finding the exit or is killed by a monster. A player begins the game with a sli

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

using UML 1- Identify primary classes 2- Scenario description 3- Class diagrams 4- Sequence diagrams

Selfcare Project:   Technology Used Strut Frame work, WAS 5.1, WPS 6.0, DB2, AJAX, Eclipse, Rational Application Developer 6 and  DB2 Selfcare is a big umbrella under whic

Expertsmind brings you unique solution in java assignments String Handling Series signifies a sequence of character types. It has set duration of personality sequence. Onc

how can we get the data from data base to combo box in jsp page dynamically

Real Distinct and 1 Double Eigenvalue with 1 Eigenvector From the real eigenvalue/vector pair, l 1 and ?h 1 , we find one solution, e l1 t ?h 1 By our work in the 2x

What is an algorithm? What are the characteristics of a good algorithm? An algorithm is defined as “a step-by-step procedure of accomplishing some task'''' An algorithm may be sh