Python code for 4/1.