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?
post your code or copy and paste the shell 'interaction'(?) - please use a code pasting site
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.
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
Join our real-time social learning platform and learn together with your friends!