Added python code for question 2.1.