A community for students.
Here's the question you clicked on:
 0 viewing
anonymous
 5 years ago
Hey I just wanted to make sure this is a recursive program.
http://dpaste.com/hold/528254/
anonymous
 5 years ago
Hey I just wanted to make sure this is a recursive program. http://dpaste.com/hold/528254/

This Question is Closed

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0Nope it doesnt call itself

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0ok I redid it http://dpaste.com/hold/528258/ how would I make this print the right output.

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0I got it to print but not how i wanted it to http://dpaste.com/528260/. I want it to print in the function.

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0I think you may want to redesign the way your function is written. I would try something like this: http://dpaste.com/528263/

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0Sorry 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.

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0and 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:]

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0sorry i did not see your second script, that works, but your first two did not.

anonymous
 5 years ago
Best ResponseYou've already chosen the best response.0final finished script is here if anyone needs it for pset2a recursive http://dpaste.com/hold/528266/
Ask your own question
Sign UpFind more explanations on OpenStudy
Your question is ready. Sign up for free to start getting answers.
spraguer
(Moderator)
5
→ View Detailed Profile
is replying to Can someone tell me what button the professor is hitting...
23
 Teamwork 19 Teammate
 Problem Solving 19 Hero
 Engagement 19 Mad Hatter
 You have blocked this person.
 ✔ You're a fan Checking fan status...
Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.