AVASOFT interview question

Python code for printing first n numbers