Here is my Error message
Hi @KJL and welcome to the Specialization. The first thing you did wrong was to post your proposed solution in the Discourse forum. This is not allowed and is against the Coursera Code of Conduct. So if you would, please edit your post to remove your code. Thanks!
I will edit it
Btw, I had solved the problem.Thanks!
Glad to hear it!