Hi am trying to use a value which I got from a function and wanted to use it outside the function. I have a python script which am trying to call using node and want to use the value returned from python script outside the node function.
Below is what am trying to do, I want the aa value to be used outside function:
PythonShell.run(PythonfilePath, options, function (err, results) {
if (err)
throw err;
let aa = parseInt(results)
});
console.log(aa)
I want to use value store in aa for other.