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

निम्नलिखित का आउटपुट क्या होगा?

What will be the output of the following ?

print(sum(1,2,3))
A)
B)
C)
D)

Explanation:

The sum() function in Python takes an iterable (like a list or tuple) as its argument. However, in the code sum(1, 2, 3), three separate arguments are passed to the function, which is incorrect. The function expects a single iterable (like a list or tuple), not multiple individual numbers.

So, the code will raise a TypeError.

Thus, the correct answer is:

(A) Error

Latest Updates