Geektrust Family Problem - Python Solution - Problem Definition Link
This repository contains the classes, test cases and inputs related to Geektrust's Family problem.
Run the code using the following command:
python geektrust.py [Absolute-Path-To-Input-File]
python geektrust.py [Absolute-Path-To-Input-File]/Inputs/Input1.txt
python test_geektrust_family.py
The code contains the following files:
1. geektrust.py: Entry to the code. Initial family tree is populated, calls to parse input file and interpret commands
2. main_class.py: Input file is parsed, input commands interpreted, calls sent to family functions, output sent to the terminal
3. person.py: contains the relevant attributes of a person and functions that a person can perform
4. test_geektrust_family.py: contains the test cases to test all the family functions defined
5. Inputs folder - Contains 6 sample inputs that can be used to test the code.
It also contains the text file - Populate_Family_Tree.txt -with commands to populate the family tree initially.
6. Outputs folder - Contains the expected outputs corresponding to the 6 input files