vendredi 7 septembre 2018

python if else statement is ignoring the rest of my code

the if else is working, but after that the code is ignored by python compiler, i am using print(number) to know if the compiler is reading the line, in my case i am not getting the print('22222222') which should be.

                    print('111111111') 
                    if ("Updated" in answer_date.text):
                     print('if correct')
                     answer_date.text= answer_date.text[8:]

                    else:
                     print('else correct')
                     answer_date.text= answer_date.text[9:]
                    print('2222222222')

Aucun commentaire:

Enregistrer un commentaire