Ad

My attempt at kumite? Am I doing this right?

Code
Diff
  • def even_or_odd(number):       
        return 'Even' if number%2==0 else 'Odd'
        
    • def even_or_odd(number):
    • match (number % 2):
    • case 0:
    • return 'Even'
    • case 1:
    • return 'Odd'
    • def even_or_odd(number):
    • return 'Even' if number%2==0 else 'Odd'