mercredi 10 juin 2020

Can you check what is executing if statement Python [closed]

I would like to ask if I can check what is executing if statement in Python. I want to know what is executing the statement. If it's x - make something with x, if it's y - make something with y, if it's x and y - make something with x and y. I don't know the x and y value.

# Example:
x = ?
y = ?
if x == 1 or y == 1:
    print(executed_number)

Thanks in advance!

Aucun commentaire:

Enregistrer un commentaire