Solved 3 Write The Python Code For The Following Test Cases

Solved 3 Write The Python Code For The Following Test Cases