question about Z=[[x for y in range(1,2) if AList[x]==y] for x inrange(0,5)]

Discussion in 'Python' started by Vincent Davis, Jan 31, 2009.

  1. Z=[[x for y in range(1,2) if AList[x]==y] for x in range(0,5)]
    I am not sure how to ask this but which "for" is looped first? I could
    test but was wondering if there was a nice explanation I could apply
    to future situations.

    Thanks
    Vincent Davis
    720-301-3003
     
    Vincent Davis, Jan 31, 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. Replies:
    46
    Views:
    971
    Antoon Pardon
    Jul 25, 2006
  2. Lambda
    Replies:
    2
    Views:
    399
    James Kanze
    Jul 16, 2008
  3. Tomoyuki Kosimizu

    Range does not take an Range object.

    Tomoyuki Kosimizu, Nov 25, 2003, in forum: Ruby
    Replies:
    3
    Views:
    153
    Tomoyuki Kosimizu
    Nov 27, 2003
  4. David Bird
    Replies:
    1
    Views:
    212
    Tiago Macedo
    Jun 23, 2008
  5. Token Type
    Replies:
    13
    Views:
    420
    Token Type
    Oct 9, 2012
Loading...

Share This Page