For loop in list

a1=[ i*i for x in range(1,10)]
print(a1)
not working

Change [i*i for x in range(1,10)]
to [i*i for i in range(1,10)]