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