What is the output of the following code ?
x = 27 def foo(a, b=x): print(a,b) x = 24 foo(7)
In foo(7)we are passing the value for "a" only, so a becomes 7 and b value will be same as value of "x" i.e. 27So it will print 7 27
foo(7)
Comment here: