Implement one core operation from Code as a reusable Python function and test it with three cases.
Run your code to see output here...