Write a function to return the square of first N numbers


Topic: Write a function to return the square of first N numbers

Solution

def get_squares(n):
   return [i*i for i in range(n)]



List all Python Programs