Ad
Code
Diff
  • def even_or_odd(n):
        return ['Even', 'Odd'][n%2]
    
            
    • def even_or_odd(n):
    • return 'Even' if n % 2 == 0 else 'Odd'
    • return ['Even', 'Odd'][n%2]