Create a list of tuples with adjacent list elements if a condition is true Create a list of tuples with adjacent list elements if a condition is true python-3.x python-3.x