Why You Shouldn’t Use the Global Keyword in Python

In this Python lesson, I’ll be going over why you should never use the ’global’ keyword in your code. Often times, you’ll hear me and others say you shouldn’t use the global keyword, but you never really hear why. I’ll be demystifying the global keyword and explaining why you shouldn’t use the global keyword in Python and why it’s generally recommended you do not use it. 💻 AlgoExpert is the coding interview prep platform that I used to ace my Microsoft and Shopify interviews. Check it out and get a discoun
Back to Top