Ad

just a cleanup

Code
Diff
  • def even_or_odd(n):
        return "Even" if n% 2 == 0 else "Odd"
                
    • def even_or_odd(n):
    • for i in range(n//2):
    • n = n - 2
    • return "Even" if n == 0 else "Odd"
    • return "Even" if n% 2 == 0 else "Odd"