I had a homework in which I had to calculate the square root of the input numbers with the display of four numbers after the decimal point. for example the input is 4(the number of numbers that the user wants to calculate their square root) 1, 2, 19, 100 and their output is 1.0000, 1.4142, 4.3588, 10.0000 I wrote the program below but I got 0. Can you please tell me what is wrong with it?
import math
numberss=[]
sqrtlist=[]
tedad=int(input())
for i in range(tedad):
addad=float(input())
numberss.append(addad)
for item in numberss:
sqrtlist.append(math.sqrt(item))
for sqrrs in sqrtlist:
print(format(sqrrs,".4f"))