Help subtracting lists in python

Discussion in 'General Computer Support' started by the_skin, Oct 1, 2009.

  1. the_skin

    the_skin

    Joined:
    Oct 1, 2009
    Messages:
    1
    Hi, I have
    x=[5,6,7]
    y=[3,4,5]
    how do i subtract the lists, so that it would give me: [2,2,2]
    thanks,
    cheese
     
    the_skin, Oct 1, 2009
    #1
    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. =?iso-8859-1?Q?Frisbee=AE?=

    OT: Which Monty Python Character Are You?

    =?iso-8859-1?Q?Frisbee=AE?=, May 24, 2004, in forum: MCSE
    Replies:
    9
    Views:
    600
  2. Bex
    Replies:
    5
    Views:
    935
  3. VWWall

    Lists of Lists

    VWWall, Oct 20, 2004, in forum: Computer Information
    Replies:
    2
    Views:
    493
    VWWall
    Oct 21, 2004
  4. partyin
    Replies:
    0
    Views:
    1,090
    partyin
    Feb 21, 2012
  5. ccp723

    python 3.0 help please

    ccp723, Feb 25, 2012, in forum: General Computer Support
    Replies:
    0
    Views:
    843
    ccp723
    Feb 25, 2012
Loading...

Share This Page