We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b9322f4 + 5f18d29 commit c72ec46Copy full SHA for c72ec46
_episodes/08-defensive.md
@@ -462,9 +462,9 @@ This violates another important rule of programming:
462
> > ## Solution
463
> > ~~~
464
> > # a possible pre-condition:
465
-> > assert len(input) > 0, 'List length must be non-zero'
+> > assert len(input_list) > 0, 'List length must be non-zero'
466
> > # a possible post-condition:
467
-> > assert numpy.min(input) < average < numpy.max(input), 'Average should be between min and max of input values'
+> > assert numpy.min(input_list) <= average <= numpy.max(input_list), 'Average should be between min and max of input values (inclusive)'
468
469
> > {: .python}
470
> {: .solution}
0 commit comments