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 and System.out should not be used anywhere in the programs except in main and only for testing purposes.  All calculations should be done in a method.  Note:  To use J

C++ language introduces object-oriented programming (OOP) features to C language. It offers classes, which provide the four features commonly present in OOP (or some non-OOP) langu

Write a program to mask bits D3D2D1D0 and to set bits D5D4 and to invert bits D7D6 of the AX register.

The Lost Bay Software Coop purchased EnviroMeasurements, a small startup with a product, GreenStation, that measures pollen count and air quality. The company has ventured

(a) (i) What do you meant  by a function? Are functions required when writing a C program? (ii) State one of the advantages to the use of functions. (iii) What do you meant by a

how to concatinate two strings in assembly

You should use the BToolkit to produce the answers to the questions below. Where applicable, please use the machine names and identifier names suggested in the question to help me

1.   You have been asked to write a computer program that will figure out the total of an order when given the amount of the order ($200) and a sales tax rate of five percent.  I w

You need to create a simple application for the Note Plus book Store. The interface for the application is shown below:   REQUIRED: 1)  Create all necessary contro