How To Solve Test Cases In Python For All Selected Lines