Skip to content
Advertisement

Python between syntax (IF statement)

I am currently working on creating python automation tool based on excel file and basic idea of this project is allocation data into specific people automatically. However, I faced a small problem which is to make a condition for right allocation.

Data for conditions in Excel:

JavaScript

Description : I’d like to allocate data based on above of the longitude min & max data and those data is stored in Excel file and I called those data as two lists.

JavaScript

My Code :

JavaScript

Expecting Conditions:

In sort, I would like to allocate data based on between ‘longitude_min’ and ‘longitude_max’ into specific email people’s email address.

Do you guys have any ideas how I should write the code for this condition ?

Advertisement

Answer

I think you mean longitude_min < longitude < longitude_max.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement