Open equals low and high python code

Does anyone have open price equals low and high price code in python?