dimanche 4 octobre 2015

Changing variable to elif within if statement (Python)

So I'm trying to figure out how to make this work:

if variable == "yes":
    variable = "no"
elif variable == "no:

What I want to happen is for the program to start running the elif statement after variable has been changed to match it. How should I go about that?

Aucun commentaire:

Enregistrer un commentaire