i use langages that uses py with
so you have to wrap things in a function so that it will be called
i'm tired telling beginners : hey don't forget to declare your globals
don't forget don't forget .... and most of the time there are many ...
well they just can't declare it in the func as they have to keep track
js is good on this aspect. well you have to be careful but it is very nice.
On 17 Sep 2017 14:55, "Steve D'Aprano" <steve+python at pearwood.info> wrote:
> On Sun, 17 Sep 2017 08:02 pm, Abdur-Rahmaan Janhangeer wrote:
> > as someone who really dislike js, i have to admit : python's globals are
> > really really bad !
> > js is a charm at that a real charm !
> ?Cheer up,? they said, ?things could be worse.? So I cheered up, and sure
> enough, things got worse.