jeudi 19 septembre 2019

How to get rid of else statement back up issue in python

1 def function name:

if (A):
    if (A1):
        return 
    else:
        recursion
else(B)
    if (B1):
        return C

After the program execute return c in if(B1), why it goes back and execute recursion instead of stop and directly return C to the function? how to get rid of this problem?

Aucun commentaire:

Enregistrer un commentaire