Ad
Code
Diff
  • def even_or_odd(n):
        return 'Even' if n % 2 == 0 else 'Odd'
    • def even_or_odd(n):
    • return 'Even' if n ^ 1 == n + 1 else 'Odd'
    • return 'Even' if n % 2 == 0 else 'Odd'