Question

(1) Runnable codes in Python. (task: 12 marks, instructions and comments: 5 marks, in total 17 marks)

Fig: 1

Fig: 2