姬長信(Redy)

python – 如何确定整数是偶数还是奇数


def is_odd(num):
    # Return True or False, depending on if the input number is odd. 
    # Odd numbers are 1, 3, 5, 7, and so on. 
    # Even numbers are 0, 2, 4, 6, and so on. 

我想知道你会从这里做些什么来得到那些答案.