commit
c3c24e3124
@ -1983,7 +1983,7 @@
|
|||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"def trip_severity(scanners): \n",
|
"def trip_severity(scanners): \n",
|
||||||
" \"The sum of sevrities for each time the packet is caught.\"\n",
|
" \"The sum of severities for each time the packet is caught.\"\n",
|
||||||
" return sum((d * w if caught(d, w) else 0) \n",
|
" return sum((d * w if caught(d, w) else 0) \n",
|
||||||
" for (d, w) in scanners)\n",
|
" for (d, w) in scanners)\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user