def even_or_odd(num): if num % 2 == 0: return 'even' elif num % 2 !=0: return 'odd'
Time is over! You can keep submitting you assignments, but they won't compute for the score of this quiz.
Return whether an input number is even or odd
Write a function that will take in a number, and return whether it's even or odd.
even_or_odd(57) == 'odd' even_or_odd(2422) == 'even'