Skip to content

tebbythomas/Geek_Trust_Challenge-Family_Problem-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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]
Eg:

python geektrust.py [Absolute-Path-To-Input-File]/Inputs/Input1.txt
Run the tests using the following command:

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

About

Repository contains solution to Geek Trust - Family Coding Challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages