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
What is the switch Statement? This is a different form of the multi way decision that It is well structured, but can only be used in certain cases where: 1. Here, Only one var

Define The if - else - if Statement - Computer Programming? The universal form is                         if (expression 1)                         {

Problem Specification I/O programming is the \bread and butter", the raison d'etre, of microcontrollers. After all, our definition of a microcontroller is \a microprocessor wit

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

Need help with a cobol program.

Write a Prolog predicate remove_nth(N,L1,L2) that is true if list L2 is just list L1 with its Nth element removed. If L1 does not have an Nth element then the predicate should fail

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

code for using tree view control and fill it with database using asp.net and language vb.net

How to lunch webcame via viusal studio 2012

Area Under Curve Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve be