No you didn't. You wrote a function that prints one number and then returns.

All you did was call this function n times. That does not satisfy the requirement of your assignment:
The entire...