Sunday 15 January 2012

nested for loops in python with lists -


People - I have two lists

  list1 = ['a', 'b 'I would like to send the variable to a function below:  
  associate_address (list1 [[y1,' z ']   

0], list 2 [0] ]) In associate_address (list 1 [1], list 2 [1])

my script:

  in list 1 : Conn.associate_address (i, l)   

I get the following output:

  conn.associate_address (a, y) conn.associate_address (A , Z)   

I like it:

  conn.associate_address (a, y) conn.associate_address (b, z))    Use 

function, such as:

  list1 = ['A', 'B'] List 2 = [i, j]   

Output: ('a', 'y') ('b', 'z')

No comments:

Post a Comment