Hey y'all! First time posting in Code Ranch

I am trying to figure out the following problem on HackerRank:
https://www.hackerrank.com/challenges/python-lists/problem
I wrote my code in visual studio code -- Using the examples provided by the problem, the correct output seems to be coming out out of the vs console.
However, when I paste my solution into HR and click submit it says there's a syntax problem with line 7, the args line.
Does anyone know why this is happening? Thanks in advance!