625642 (1) [Avatar] Offline
Dear Ana,

nice to meet You,

On page 130 the if condition is:

if type(num_a) != int OR type(num_b) != int:

From my point of view, condition should be AND, because both values must be numeric.
In case of OR only one conditions must be true..???

Could You please help me with this,

kind regards,


Ana Bell (33) [Avatar] Offline
You understanding of AND and OR is correct. In this example, I want to print the message if either of the numbers is not an integer.

I want to keep going to do the calculations only if both are integers. So if either is not, I want to print the message.