For each of the following functions, specify the type of its return. You can assume each
function is called with an appropriate argument, as specified by its docstring.
If the output can be either an int or a float, select num, which isn't a real Python type, but
which we'll use to indicate that either basic numeric type is legal.
def b(x):
x: int or float.
return x + 1.0
Indicate the type of the output that the function b will yield. [Select]
def d(x, y):
x: Can be int or float.
y: Can be int or float.
return x > y
Indicate the type of the output that the function d will yield. [Select]
def f(x, y):
x: int or float.
y: int or float
x + y - 2
Indicate the type of the output that the function f will yield. [Select]