Ahah..i got it..well i think this is right anyway.
in the code i included print statements everywhere hoping it will help me debug the code BUT as i already have print statements int he functions it was causing problems, so after removing them and sorting out 'global name errors' i have some index numbers :)
yaaay im not a programmer but i will get there :)
S
User Profile
Collapse
-
okaay that worked fine, when i call this with another function it returns 'None'.
The data i am using is actually really large so i would like to call pass it numbers automatically, the code below looks fine to me ..why does is it not working?
just to refresh:
I have a series of arrays, I want to find the index of object '0' in frame F from the data.
When i have the index for the object, if that object exists in that...Leave a comment:
-
Wow thanks...i didnt think anyone would actually reply..This forum is great...thankks again guys..
SafyLeave a comment:
-
working with arrays
Hello, i really need some help, im new to python so having a bit of trouble.
i have two arrays which i successfully pulled out from some data. i want to search these arrays for 2 number and when they appear i want their index.
Code:>>> arrF = [3,4,5,6,7,8,9] >>> arrid=[0,0,0,1,0,0,0] >>> def indexOfObjectinFrame2(frame,arrF,arrID,id): ... for i in arrF: ... if arrF[i] ==
No activity results to display
Show More
Leave a comment: