From 7148cb83fccaeb87a7e29ed99d418f129d468bc1 Mon Sep 17 00:00:00 2001 From: sartography-automated-committer Date: Thu, 5 Oct 2023 17:48:55 +0000 Subject: [PATCH] User: dan@sartography.com clicked save for examples/1-basic-concepts/1-3-scripts/script-task.bpmn --- examples/1-basic-concepts/1-3-scripts/script-task.bpmn | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/examples/1-basic-concepts/1-3-scripts/script-task.bpmn b/examples/1-basic-concepts/1-3-scripts/script-task.bpmn index 60e95fcb..deafd1d3 100644 --- a/examples/1-basic-concepts/1-3-scripts/script-task.bpmn +++ b/examples/1-basic-concepts/1-3-scripts/script-task.bpmn @@ -35,13 +35,8 @@ time.sleep(2) # need to use to calculate a score. num_correct = 0 -# Assure we give a good score for any of these responses: -# "12", "12.0", "12.000000", "TWELVE", "twelve ", "Twelve" -# Note that this could have been done in the form as well, by -# requiring a number within a specific range. -if flag_stars.lower().strip() == "twelve": - num_correct += 1 -elif int(flag_stars) == 12: + +if flag_stars == 12: num_correct += 1 if "nile" in longest_river.lower():