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

निम्नलिखित फ़ंक्शन का रिटर्न प्रकार क्या है?

What is the return type of following function ?

def func1():
       return “mnp‟,22
A)
B)
C)
D)

Explanation:

Let's analyze the function:

def func1():
    return "mnp", 22
  • The function is returning two values: "mnp" and 22, separated by a comma.
  • In Python, when multiple values are returned separated by a comma, they are returned as a tuple.

So, the return type of the function is tuple.

Answer: (D) tuple.

Latest Updates