dimanche 21 juillet 2019

why does my code ignore my if statement and only returns the first condition? [duplicate]

This question already has an answer here:

my if statement doesn't work

def func_add(str):
    if str== '----' or 'hatred' :
        return 'No ' + str ;
    else:
        return 'go to the next function'

Aucun commentaire:

Enregistrer un commentaire