Is there any performance difference between the following 2 functions: Which one has a smaller execution time? Answer I don’t think there is a performance difference, but the second function is better for readability, because you don’t have to indent. Also you can use !a in the if statement in theā¦