Characterizing Numbers#
Write a function get_num_type(num) that returns the following output based on the value of num. You can assume that num will always be an integer.
get_num_type should return:
“zero” if
numis 0“positive and odd” if
numis a positive number as well as an odd number“positive and even” if
numis a positive number as well as an even number“negative and odd” if
numis a negative number as well as an odd number“negative and even” if
numis a negative number as well as an even number
Sample Input:
11
Sample Output:
positive and odd