Look more closely at the code of my initial response.vajra11 wrote: ↑Sat Dec 29, 2018 3:42 pmI declared global but still giving error perhaps I am making a mistakeIdahowalker wrote: ↑Sat Dec 29, 2018 1:40 pm
You created a global variable but you did not declare count in the local functions as global.