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