[Tutor] Fwd: Puzzle - Next Step to our interviewing process - Pramati Technologies!

Sunil Tech sunil.techspk at gmail.com
Tue Apr 15 16:49:47 CEST 2014


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


 ----------------------------
Data File data.csv
1, 4.00, burger
1, 8.00, tofu_log
2, 5.00, burger
2, 6.50, tofu_log
 Program Input
program data.csv burger tofu_log
 Expected Output
=> 2, 11.5
---------------------------
 ----------------------------
Data File data.csv
3, 4.00, chef_salad
3, 8.00, steak_salad_sandwich
4, 5.00, steak_salad_sandwich
4, 2.50, wine_spritzer

Program Input
program data.csv chef_salad wine_spritzer
Expected Output
=> nil (or null or false or something to indicate that no matching
restaurant could be found)
---------------------------
 ----------------------------
Data File data.csv
5, 4.00, extreme_fajita
5, 8.00, fancy_european_water
6, 5.00, fancy_european_water
6, 6.00, extreme_fajita, jalapeno_poppers, extra_salsa
 Program Input
program data.csv fancy_european_water extreme_fajita
 Expected Output
=> 6, 11.0


On Tue, Apr 15, 2014 at 8:05 PM, Danny Yoo <dyoo at hashcollision.org> wrote:

> So, what is your question?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140415/b1100f6f/attachment-0001.html>


More information about the Tutor mailing list