I\'m writing a function that takes a list L as a parameter and returns a list consisting of all the elements in L that are perfect squares.
def isPerfectSquare(
x=int(input()) if x>0: for i in range(x): p=i**2 print(p)