Handling lists and calculations in Python scripts

I’m learning DynamoPython.
It’s a very simple question, but I want to do the calculations in the red box in a Python script, but I’m not used to dealing with lists yet.
Any help would be appreciated!

@jj06jj like this:

values = IN[0]

OUT = [value[0]*value[1] for value in values]

1 Like

Thank you!

1 Like

Some alternatives :grinning:

3 Likes

@c.poupin I am sure you can do better :smiley:

1 Like