romanovamar / bio-python

0 stars 0 forks source link

Exam task for Maria Romanova #11

Open YakutovDmitriy opened 5 years ago

YakutovDmitriy commented 5 years ago

Main requirements

Your program should never fail.

You are free to implement the task as you want. In particular, if there are some uncertainties, you have to decide what to do.

You are free to add some functionality. Please describe all features you added.

Implement application taxi.py to work with taxi service.

Your taxi service is working in 1D-world (on straight line). Every place is defined by its coordinate (one number). Distance between two points is a difference between their coordinates (in km).

You have list of your drivers, it is stored in file drivers.tx. Every driver has several properties:

Also you have list of all orders you ever had. They are stored in file orders.tx. Every order has several properties:


romanovamar commented 5 years ago

I did not notice that format of files is YAML and wrote the program on JSON, I thought it was just an example. And when I realized that these were files for writing, it was too late to correct, sorry, I hope it is not that severe.

YakutovDmitriy commented 5 years ago

If your implementation works, format of file doesn't matter :)

YakutovDmitriy commented 5 years ago

Your program is very good. Json is very good solution for storing this kind of data. Actually I wanted to make json examples but I thought that I is too difficult for exam to discover new library.

Also it is pretty cool that you used argparse to work with arguments. You get full score for exam

YakutovDmitriy commented 5 years ago

Actually you didn't satisfied one of main requirements: your program fails with empty set of argument, but it doesn't spoit the impression :)

romanovamar commented 5 years ago

wow, thank you. Apparently I've spent more time on writing, than testing(

YakutovDmitriy commented 5 years ago

I want to share a link with your program with other student to show how it could be if you don't mind. Is it ok?

romanovamar commented 5 years ago

Yes, sure