Python Code
Input File