User: dan@sartography.com clicked save for examples/1-basic-concepts/1-3-scripts/script-task.bpmn
This commit is contained in:
parent
47280859f3
commit
7148cb83fc
|
@ -35,13 +35,8 @@ time.sleep(2)
|
||||||
# need to use to calculate a score.
|
# need to use to calculate a score.
|
||||||
num_correct = 0
|
num_correct = 0
|
||||||
|
|
||||||
# Assure we give a good score for any of these responses:
|
|
||||||
# "12", "12.0", "12.000000", "TWELVE", "twelve ", "Twelve"
|
if flag_stars == 12:
|
||||||
# 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:
|
|
||||||
num_correct += 1
|
num_correct += 1
|
||||||
|
|
||||||
if "nile" in longest_river.lower():
|
if "nile" in longest_river.lower():
|
||||||
|
|
Loading…
Reference in New Issue