1.) What will be the output ?
def intro(name , hobby = " reading" ) :
print("Hello my name is " , name)
print ("My hobby is ", hobby )
intro(“XYZ”)
a. Hello my name is XYZ
My hobby is reading
b.) Hello my name is XYZ
My hobby is
c.) Error
2.)What will be the output ?
def intro(name , hobby = " reading" ) :
print("Hello my name is " , name)
print ("My hobby is ", hobby )
intro(“XYZ”, “Swimming”)
a. Hello my name is XYZ
My hobby is reading
b.) Hello my name is XYZ
My hobby is swimming
c.) Error
3.)What will be the output ?
def intro(name = “XYZ” , hobby ) :
print("Hello my name is " , name)
print ("My hobby is ", hobby )
a. Hello my name is XYZ
My hobby is reading
b.) Hello my name is XYZ
My hobby is
c.) Error