Why does `return g` with no parentheses make a chained call like `make_prod(2)(3)` work, when `return g()` never could?
Short drills on what this video just taught. Write the code, run the checks, and reveal the answer only if you are stuck.
The video drew an integer, a float, and a function in three identically-sized memory boxes to make the point that nothing about the function row is special. Check that Python agrees.
Two values, radius and pi, are given to you. Write a function named is_odd that takes one number and gives back whether that number is odd. Then assign to report a four-element list holding:
radius's type, as a stringpi's type, as a stringis_odd's type, as a stringis_odd gives for 7(Vocabulary: type(obj) hands back an object's type, and every type carries a .__name__ attribute holding its own name as a string. % is the remainder operator.)