Manage List with sublist in Python

Hi,

I would like to ask if someone could kindly help me to translate it into Python code.

image

I have a list with a sublist and I would like to get elements of sublist 1.

Many thanks!

Best regards,

Julia

Before I was trying a difficult approach without any results. The solution was very simple:)

image

1 Like

hello, as said by Mr. Nick once Python and DesingScript are sometimes very similar in thinking

cordially
christian.stan

1 Like

Thanks!!!

Out of interest, why do you want that in Python?
For something that simple designscript is easier.

Hi,
I know, it’s easy. I needed this, to integrate it with another part of the code. I am a beginner and I am still learning. Thank you for the patience.

2 Likes