Skip to content

geektrust/python-interview-two-string-input-starter-kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Starter Kit

A simple Python console application that processes command-line instructions.


🚀 How to Run

1. Run the App

Pass commands as arguments inside quotes to the wrapper script:

python gt_main_wrapper.py "anagram nagaram"

✅ Each string represents a command and its arguments.


🧪 Run Tests

Unit tests are located in test_sample.py.

You can run them using the provided bash script or standard Python tools:

./run_unittests.sh
# or
python -m unittest discover -s .

🗂️ Project Structure

.
├── gt_main_wrapper.py  # Driver code to pass arguments (Do not edit)
├── main.py             # Console app source code where logic goes
├── test_sample.py      # unittest test cases
├── run.sh              # Bash script to run the application
├── run_unittests.sh    # Bash script to run tests
└── README.md           # This file

📌 Example Commands

anagram nagaram
rat car

🛠️ Implementation Notes

  • Commands are parsed in main.py → handle(self, input_str).
  • Extend the handle method to implement actual business logic.
  • State can be maintained class variables, dictionaries, or separate helper methods within the Main class.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors