question archive Why does this equal 4 def inc(a,b=1): return(a+b) a=inc(1) a=inc(a,a) print(a)

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

Why does this equal 4

def inc(a,b=1):

return(a+b)

a=inc(1)

a=inc(a,a)

print(a)

Option 1

Low Cost Option
Download this past answer in few clicks

2.86 USD

PURCHASE SOLUTION

Option 2

Custom new solution created by our subject matter experts

GET A QUOTE

rated 5 stars

Purchased 11 times

Completion Status 100%

Related Questions