Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 10 Online
OpenStudy (anonymous):

Hey I just wanted to make sure this is a recursive program. http://dpaste.com/hold/528254/

OpenStudy (anonymous):

Nope it doesnt call itself

OpenStudy (anonymous):

ok I redid it http://dpaste.com/hold/528258/ how would I make this print the right output.

OpenStudy (anonymous):

I got it to print but not how i wanted it to http://dpaste.com/528260/. I want it to print in the function.

OpenStudy (anonymous):

I think you may want to redesign the way your function is written. I would try something like this: http://dpaste.com/528263/

OpenStudy (anonymous):

Sorry but I don't see why the code you gave me is any better than mine, Mine does exactly the same thing just in a shorter format.

OpenStudy (anonymous):

and also i realized you can take out the assignment lis =target but you have to change lis[x+1:] in my line 5 to target[x+1:]

OpenStudy (anonymous):

sorry i did not see your second script, that works, but your first two did not.

OpenStudy (anonymous):

err third...

OpenStudy (anonymous):

haha ok thanks

OpenStudy (anonymous):

final finished script is here if anyone needs it for pset2a recursive http://dpaste.com/hold/528266/

OpenStudy (anonymous):

i mean pset3a

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!