Parity

Report a typo

Examine the following code:

def parity(number):
    if number % 2 == 0:
        return "Your number is even"
    return "Your number is odd"

This function determines the parity of a number and says if it is even or not. What is the return value of parity(8)?

Select one option from the list
___

Create a free account to access the full topic