I'm not sure why for the second function I get this output. Why is it printing 11,
Fantastic news! We've Found the answer you've been seeking!
Question:
I'm not sure why for the second function I get this output. Why is it printing 11, 7,5,3,2
def rp2( L, i ):
if i < len(L):
rp2( L, i+1 )
print(L[i], end=' ')
else:
print()
L = [ 2, 3, 5, 7, 11 ]
rp2(L,0).
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date: