i wrote a code and it works correctly but the mentor gave me 0!!!! look at this problem:
"""Write a program that reads some positive numbers from the input and prints its square root up to 4 decimal places."""
from math import sqrt
n=int(input())
L=[]
for i in range(n):
a=int(input())
L.append(sqrt(a))
for i in L:
print('%.4f' % i)
is that correct?
i wanna find my mistake and solve that.
New contributor
HRB7 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.