question archive Why does this equal 4 def inc(a,b=1): return(a+b) a=inc(1) a=inc(a,a) print(a)
Subject:Computer SciencePrice:2.86 Bought11
Share With
Why does this equal 4
def inc(a,b=1):
return(a+b)
a=inc(1)
a=inc(a,a)
print(a)
Purchased 11 times
Please enter your email address and we'll send you instructions on how to reset your password