Python Forum
accessing array without commas - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/Forum-Python-Coding)
+--- Forum: General Coding Help (https://python-forum.io/Forum-General-Coding-Help)
+--- Thread: accessing array without commas (/Thread-accessing-array-without-commas)



accessing array without commas - rjnabil1994 - Feb-10-2019

after detecting pupil through Hough transformation if i am printing the values of the two pupils value i am getting something like this [[[1.0 2.0 3.0]
[4.0 5.0 6.0]]]

But my question is i want to print them differently like A=[1.0 2.0 3.0] and B= [4.0 5.0 6.0]
as i need those differently ,so please any kind soul can help me how can i do this ?


RE: accessing array without commas - Larz60+ - Feb-10-2019

this is not a valid python list.
you will need to convert to proper list first
Is there a newline in the middle of output?