What will be the output of the following code? def my_func(var1=100, var2=200): var1 += 10 var2 = var2 - 10 return var1+var2 print(my_func(50),my_func())

Question:
What will be the output of the following code?
def my_func(var1=100, var2=200):
      var1 += 10
      var2 = var2 - 10
      return var1+var2
print(my_func(50),my_func())

1.100 200

2.150 300

3.250 75

4.250 300

Posted Date:-2021-12-12 03:23:49


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!