Hi everyone, I've altered the code above, adding the first line now shown. I think the issue reported is simply…