from math import sqrt def u(n): for k in range(...): u = sqrt(...) print(u)