NaN
Acronym for “not a number”. The error message appears when the return of a code is not a number when a number is supposed to be returned.
Error Message |
|
---|---|
Bug example ✘ | Source of error: Only a number, not a list of numbers, can multiply by 4 directly. |
Correction ✔ | Solution: Multiply each item in the list by 4 in a For loop. |