Post

@PythonPr I will print Odd, because n%2 = 1. and is set to any equivalent condition
English

@PythonPr It will simply print Odd as there is no special condition to check
English

@PythonPr It should print Odd as modulus operator gives remainder
English

@PythonPr The if statement is True so 'Odd' is printed. It does not have to check whether n%2 is equivalent to some value in order to be True.
English

@PythonPr Answer: Odd — because 5 % 2 = 1, and 1 is truthy in Python, so the if block executes.
English















