[SciPy-User] [SciPy-user] How to get access to Array elements

suzana8447 k-assem84 at hotmail.com
Thu May 5 10:50:57 EDT 2011


Hello for all,

I am still a beginner in the Python language.
I have a problem and hope that some can help me.
I my program I have an array called for example densities=
array([1,2,8,10,50)]
note that the third element in the array is 8.  I want to form an if
statement as this:
if(x==8): print x # just as an example.
But how to declare x as the third elemnt of the above array.
Thanks in advance.  
 
-- 
View this message in context: http://old.nabble.com/How-to-get-access-to-Array-elements-tp31551042p31551042.html
Sent from the Scipy-User mailing list archive at Nabble.com.




More information about the SciPy-User mailing list