🚀 Hurry! Offer Ends In
00 Days
00 Hours
00 Mins
00 Secs
Enroll Now
X

नीचे दिए गए Python कोड का आउटपुट क्या होगा?

What will be the output of the following Python code?


def cube(x):
    return (x*x*x)

x = cube(3)
print(x)

A
9
B
27
C
81
D
243
Explanation

The function cube(x) returns the cube of a number.
cube(3) = 3 × 3 × 3 = 27

Hindi:
cube(x) फ़ंक्शन किसी संख्या का घन (cube) लौटाता है।
cube(3) = 3 × 3 × 3 = 27


Output: 27

Correct Answer: B) 27

Latest Updates