User Profile

Collapse

Profile Sidebar

Collapse
Safy
Safy
Last Activity: Mar 22 '07, 04:06 PM
Joined: Mar 5 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Safy
    replied to working with arrays
    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
    See more | Go to post

    Leave a comment:


  • Safy
    replied to working with arrays
    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...
    See more | Go to post

    Leave a comment:


  • Safy
    replied to working with arrays
    Wow thanks...i didnt think anyone would actually reply..This forum is great...thankks again guys..
    Safy
    See more | Go to post

    Leave a comment:


  • Safy
    started a topic working with arrays

    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] ==
    ...
    See more | Go to post
    Last edited by bartonc; Mar 5 '07, 04:22 PM. Reason: added [code][/code] tags
No activity results to display
Show More
Working...