Dec-21-2020, 04:02 AM
(Dec-19-2020, 07:02 AM)bowlofred Wrote: As I said before, interspersing function definitions with other code will make it harder to follow the execution.
Line 46 is inside the function read_history(), so the variable assigned there is local to the function. It is not accessible outside the function. So when line 55 attempts to reference it, there is an error.
I don't know how to fix this. sorry. Should I break read_history() function.