Used the ternary operator in the odd_or_even method.