Which of the following programs defines and calls afunction to compute and print the cube of”2″?
(There could be more than one correct answer.)
def cube(n): return n * n * nprint(cube(2))def cube(n): return n ** 3print(8)def cube(a): b = a * a return b * ac = 2d = cube(c)print(d)def cube(n): n ** 3print(cube(2))
Expert Answer
An answer will be send to you shortly. . . . .