#from the given data in the question:
Id=3.0 #Drain current in mA
Vgs=10.0 #Gate-source voltage in volts
Vth=3.0 #threshold voltage in volts
k=Id/((Vgs-Vth)**2) #constant in A/V2
print "The required Value of k=",round(k,3),"mA/v2"