adplus-dvertising
frame-decoration

Question

What is the output of below program?
def cube(x):
    return x * x * x      
x = cube(3)    
print x

a.

9

b.

3

c.

27

d.

30

Posted under Python

Answer: (c).27

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of below program?