HomeFunction (Preeti Arora) Predict the output of the following code: 0 Comments Facebook Twitter Q. Predict the output of the following code: a = 10y = 5def myfunc(): y = a a = 2 print("y =", y, "a =", a) print("a+y =", a + y) return a + yprint("y =", y, "a =", a)print(myfunc())print("y =", y, "a =", a) Answer = Output:-y = 5 a = 10Error
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )