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

Hi I'm trying to solve assignment 3. I can call the function find from the shell only, but if I use the function find in my code I don't know how to retrieve the values once I run it in the shell. Any help please?

OpenStudy (anonymous):

post your code or copy and paste the shell 'interaction'(?) - please use a code pasting site

OpenStudy (anonymous):

silvestre: As bwCA pointed out, people are unable to help if you only post generic questions without code for others to look at. You have an attach facility with openstudy and others have used external sites to do the same thing. At http://openstudy.com/users/chribonn#/updates/4f7ae3f9e4b0884e12aad638 is the link to the solution I posted a few days ago. Hope this helps.

OpenStudy (silvestre):

Ah OK I'll do so in the future. I just saw somebody else's code and realised that the find function has to be used directly in the code. I was trying find(target,key) if find>0: but it should be if find(target,key)>0 I'll try to solve it before checking the solution, It'll take me some time! Thank you

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!