mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 06:25:23 +01:00
conditional_probability lint fix
This commit is contained in:
@@ -20,8 +20,8 @@ def conditionalProbFunc(format='string'):
|
|||||||
if format == 'string':
|
if format == 'string':
|
||||||
problem = "Someone tested positive for a nasty disease which only {0:.2f}% of population have. " \
|
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}%. " \
|
"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(
|
"What is the probability that this guy really has that disease?".format(
|
||||||
P_disease, true_positive, true_negative)
|
P_disease, true_positive, true_negative)
|
||||||
solution = str(answer) + "%"
|
solution = str(answer) + "%"
|
||||||
return problem, solution
|
return problem, solution
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user