Nov-14-2020, 05:37 AM
(Nov-14-2020, 05:22 AM)deanhystad Wrote: How is that better? Feels awkward. In GUI programs it is the norm for a menu selection or button press to execute hundreds or thousands of lines of cofe.
I am not talking about number of lines of codes. I was trying to access that variable from outside that function. I don't know, there could be simpler way. If I put everything in a class, I could use
self.file
. Then I guess, I didn't have to use global.Thanks.