vendredi 12 juin 2020

Getting value from if statement when True

I have a if statement in my Python code that runs when the called function returns a value. I then want to store that value into a variable. Is there any way to do this without calling the function twice?

if ray.intersect(b):
    p = ray.intersect(b)
    return p

Aucun commentaire:

Enregistrer un commentaire