lundi 14 janvier 2019

I want to make a return program in python but I only want it to work on one if statement?

I want to make a return program in python but I only want it to work on one if statement because I have multiple if then statements and it works on all of them. So if I say hi (Which is in another if statement) it would also do face_recogntion.recognize() which I only want to work if that specific statement is working.

if "Start Facial Recognition" in data:
    return True

face_recogntion.recognize()

Aucun commentaire:

Enregistrer un commentaire