Dec-04-2020, 10:50 PM
The code lines shown are the line numbers that were executed prior to receiving the error.
So in Your case, the sequence is: line 89 (main()), then line 85, and finally line 54 where the error actually occurred.
The code of that line is then shown, and the error message explains that the subscript used is the issue.
Looking at that, you can't use a string
So in Your case, the sequence is: line 89 (main()), then line 85, and finally line 54 where the error actually occurred.
The code of that line is then shown, and the error message explains that the subscript used is the issue.
Looking at that, you can't use a string
'value'
as an index. use without quotes, which is the variable name.