Python script Input Error "TypeError: expected int, got list"

Hi @Nick_Boyts
Thanks for the quick reply, I am very sorry to post on this topic.
actually, before posting I went through the below topic in which you have given a solution.

As I am new to python so not getting the things easily.
I would be very thankful if you can guide me on my issue.