| 1 | initial version |
I usually do this using a for loop. For example,
L=[[1,2],[3,4],[5,6]]
# overly simple example function
f(x)=x^2
for entry in L:
#your code to run here
f(entry[0])
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.