Solved

# lists in python

Posted on 2007-08-12

I need a list to store some data,

basically I do this:

x,y = function (entry_for_x,y)

if function_if ( x,y):

return function (entry_for_angle)

and the function reads from a list like this

list = { x, y, angle,

x, y, angle,

x, y, angle,

x, y, angle,

x, y, angle,

x, y, angle,

x, y, angle,

x, y, angle,

}

so

so overall, the list contains the (x,y) for the function to check, and then if true then the angle for that (x,y)

combo is returned.

like this:

for a in range(0,200, 1):

if function(list(a, 1)):

return function(list(a, 2))

in the example above, function(list(a, 1)) would be doing true/false verification with x,y read from the list

and then if true angle (the third item) would be returned

is this clear? please don't hesitate to ask for clarification.