Compare two list and get value at index

Please teach me how to show below
Thank advence

I want get new list:

(0) 200 (coz 230>200)
(1) 500
(2) 400 (coz 400<530)
(3) 350
(4) 100 (coz 100<210)
(5) 150

Hi @manhgt214 ,

See something like this:

If you are set on using Python make sure you iterate over each item in both lists, using For i in Hc

2 Likes

Thank you very much!!! :heart_eyes: :heart_eyes:

Can you show me how to using Python, I dont know iterate

You can do it like this:

2 Likes

Thank you very much!!!