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

Discussion in 'Python' started by A.M, Jun 16, 2006.

  1. A.M

    A.M Guest

    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
     
    A.M, Jun 16, 2006
    #1
    1. Advertising

  2. A.M

    James Stroud Guest

    Re: Looking for examples related to advanced python string, listand map operations

    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/
     
    James Stroud, Jun 16, 2006
    #2
    1. Advertising

  3. A.M

    gene tani Guest

    gene tani, Jun 16, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jesus M. Salvo Jr.
    Replies:
    2
    Views:
    4,326
    robert
    Feb 11, 2006
  2. Replies:
    3
    Views:
    340
    Pete Becker
    May 12, 2007
  3. Replies:
    5
    Views:
    1,404
  4. Michele Simionato
    Replies:
    1
    Views:
    631
    Lacrima
    Mar 27, 2010
  5. albert kao
    Replies:
    12
    Views:
    624
    Roedy Green
    Oct 7, 2011
Loading...

Share This Page