Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Looking for examples related to advanced python string, list and map operations

Reply
Thread Tools

Looking for examples related to advanced python string, list and map operations

 
 
A.M
Guest
Posts: n/a
 
      06-15-2006
Hi,



Is there any online resource that gives examples about advanced python
string, list and map operations?



Today I saw this and I found that I have to work more on mentioned topics:



numbers = [72, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100, 33]

print filter(lambda n: n % 2 == 0, numbers)



numbers = [72, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100, 33]

print reduce(lambda x, y: x+y, numbers)



Thank you,

Alan


 
Reply With Quote
 
 
 
 
James Stroud
Guest
Posts: n/a
 
      06-15-2006
A.M wrote:
> Hi,
>
>
>
> Is there any online resource that gives examples about advanced python
> string, list and map operations?
>
>
>
> Today I saw this and I found that I have to work more on mentioned topics:
>
>
>
> numbers = [72, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100, 33]
>
> print filter(lambda n: n % 2 == 0, numbers)
>
>
>
> numbers = [72, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100, 33]
>
> print reduce(lambda x, y: x+y, numbers)
>
>
>
> Thank you,
>
> Alan
>
>


First Chapter of Text Processing in Python by David Mertz.

James

--
James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
Los Angeles, CA 90095

http://www.jamesstroud.com/
 
Reply With Quote
 
 
 
 
gene tani
Guest
Posts: n/a
 
      06-16-2006

A.M wrote:
> Hi,
>
>
>
> Is there any online resource that gives examples about advanced python
> string, list and map operations?
>


http://goog-goopy.sourceforge.net/go...html#-variance
http://oakwinter.com/code/functional/documentation.html

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Advanced Python Programming Oxford Lectures [was: Re: *Advanced*Python book?] Michele Simionato Python 1 03-27-2010 06:10 AM
stand-alone JMS, other JDBC operations, and transactions ( ActiveMQ + JOTM + JDBC operations ) Jesus M. Salvo Jr. Java 2 02-11-2006 06:33 PM



Advertisments