Datatype of the returned value

what is the datatype of the returned value in any function.
For ex in this tutorial
def add(a,b):
return(a+b)

x=add(1,2)

what will be the datatype of x?

Hey @Pranav-Gupta-1716510788408154, in your case it wil be ‘int’. In future if you got confused in data types like this. try print(type(x)), this will tell you datatype of x.

Hope this resolved your doubt. :blush: