Program - python function to return the squares of a list of numbers


Topic: Program - python function to return the squares of a list of numbers

Solution

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



List all Python Programs