Python programme for managing a small farm