mercredi 25 août 2021

My if statement is not working. The condition is not being evaluated. I have no idea why

if len(enterlist) == 0:
    print('no list')
elif 5.5<=9.32 or 9.6:
    print('sell')
    closelist.append([driver.find_element_by_xpath('/html/body/div[1]/div[3]/div[1]/div[3]/div[2]/div[1]/div/table/tbody/tr[1]/td[2]').text])
else:
    print('no list no sell')

sell I have the above code. It prints sell when it should print the next line. I am building the script in sublime with python, but do not know why it will not work.

Aucun commentaire:

Enregistrer un commentaire