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. Advertisements

  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. Advertisements

  3. A.M

    gene tani Guest

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

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,494
    robert
    Feb 11, 2006
  2. Samuele Armondi
    Replies:
    4
    Views:
    1,290
    Victor Bazarov
    Jun 25, 2003
  3. Kenneth McDonald
    Replies:
    2
    Views:
    460
    Michael Schneider
    Nov 29, 2005
  4. Replies:
    3
    Views:
    420
    Pete Becker
    May 12, 2007
  5. Victor Kryukov
    Replies:
    34
    Views:
    1,154
    Victor Kryukov
    May 25, 2007
  6. Replies:
    5
    Views:
    1,544
  7. Michele Simionato
    Replies:
    1
    Views:
    761
    Lacrima
    Mar 27, 2010
  8. albert kao
    Replies:
    12
    Views:
    810
    Roedy Green
    Oct 7, 2011
Loading...