conditional_probability lint fix

This commit is contained in:
lukew3
2021-10-06 10:53:01 -04:00
parent 05b61130da
commit 15c410289b

View File

@@ -20,8 +20,8 @@ def conditionalProbFunc(format='string'):
if format == 'string':
problem = "Someone tested positive for a nasty disease which only {0:.2f}% of population have. " \
"Test sensitivity (true positive) is equal to SN= {1:.2f}% whereas test specificity (true negative) SP= {2:.2f}%. " \
"What is the probability that this guy really has that disease?".format(
P_disease, true_positive, true_negative)
"What is the probability that this guy really has that disease?".format(
P_disease, true_positive, true_negative)
solution = str(answer) + "%"
return problem, solution
else: