(May-28-2019, 12:39 PM)buran Wrote: what you have is tuple with one element list, that list has one element - list. Now that list has many elements - lists
>>> foo = ([[[32.098659, 34.826334], [32.099361, 34.830506], [32.097026, 34.831574], [32.095502, 34.827881]]],) >>> type(foo) <class 'tuple'> >>> foo[0] [[[32.098659, 34.826334], [32.099361, 34.830506], [32.097026, 34.831574], [32.095502, 34.827881]]] >>> type(foo[0]) <class 'list'> >>> foo[0][0] [[32.098659, 34.826334], [32.099361, 34.830506], [32.097026, 34.831574], [32.095502, 34.827881]] >>> type(foo[0][0]) <class 'list'> >>> foo[0][0][0] [32.098659, 34.826334] >>> type(foo[0][0][0]) <class 'list'> >>> foo[0][0][0][0] 32.098659 >>>
Hey, Thanks for the quick answers, it doesn't work for me from the code, if i do python3 on terminal and doing your commandes it does work but, from the code it doesn't.
maybe its because i forgot to mention i do :
poly = list(poly)in another section before that one ?
this is what i get when i run it through test.py code:
print("POLYYY", poly[0][0][0]) print(type(poly)) [1], INF, POLYYY (32.098659,) [1], INF, <class 'list'>Thanks