topic description
enter a number n as the qualification standard, and then enter a series of numbers, each time you enter a line break, the empty line wrap ends, and the qualified rate is output.
pass rate refers to the ratio of qualified elements to all elements in the input element.
topic source
related codes
/ / Please paste the code text below (do not replace the code with pictures)
n=eval(input())
List=[]
i=input()
while i !="":
List.append(eval(i))
i=input()
count=0
for i in List:
if i >=n:
count+=1
if len(List)==0:
print("100.00%")
else:
x=count/len(List)*100
print("{:.2f}%".format(x))
error message
want to know how to correct this error in order to avoid the current error report