I have a loop and checking one condition as follows
while (t<len(var)):
PR=y
...
if z[t]<PR :
pass_check=1
else:
pass_check=0
t=t+1
# check z for all samples and print the result
if pass_check==1:
print ('Test is pass')
elif pass_check==0:
print ('Test is fail')
else:
print ('Test is fail')
Goal
How to write Test is pass or fail in a text file depending upon the condition if all samples are 1 or 0 respectively
Aucun commentaire:
Enregistrer un commentaire