Hi, On 15 April 2014 15:49, Sunil Tech <sunil.tech...@gmail.com> wrote: > Hi Danny, > > > Thank you for replying.. > > I need the python program which takes the attached csv & on running the > program which will give me the results as <snip>
That is still not a question. It's a requirements statement. I felt tempted to point out to you that this is not a freelancer board where you get to post your software requirements and then we go and develop your software for you for free, but seeing as you obviously must know this already and presumably are actually in the process of trying to learn Python and are presumably using this apparent interview question as an interesting learning problem, I'll instead ask you to clarify how far you've gotten and where exactly you're stuck in developing a solution? We'll try and help you along and answer specific concrete questions about problems you're having. (Please provide code and full error messages including stack traces where relevant.) If you're stuck even just getting started, try breaking down the problem into smaller sub problems and solving them first, for example it's obvious from the descriptions you'll need to be able to: a) Interpret command line parameters to pick up the menu file name and products required b) Read a/the menu file into memory c) Perform some sort of search/scan of the list of menu items to return a list of restaurants carrying all the required items d) Evaluate the total costs for the items for each of the candidate restaurants to find the cheapest one e) Output/Print the result in the required format Do you have an idea/know how you might tackle each of these sub-tasks? If not, do you have an idea where to start looking to learn what you might use? Walter _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor