Wondering what is faster and/or what is better practice when checking a variable in an if statement and then using it again after the if statement.
Like
if var_A + var_B > 10:
var_C = var_A + var_B
or
var_temp = var_A + var_B
if var_temp > 10:
var_C = var_temp
sorry for the bad examples, was just wonder which of these is better
var_Cbe set to anything else if the test failed? Or is it left unbound?