I know good enough python (did course assignments and scripts) but i find myself baffled about the question that startups ask. Recently i was asked about implementing python generators and closures. Where do i find material to learn? General search for python interview questions yield questions like what’s difference between list, tuple; are strings mutable etc. Tc:130k, yoe:3
How often do people use generators, decorators, closures in python? I'm in data science and barely ever use them.
But the startup asked me these questions 🤷🏼♂️
Generators might be used in data eng space, decorators are used when implementing apis. It's not common, but it's useful. Interviewing for these may just be them checking if you have enough python experience that you've had to use them at least once in your coding career.
Just use python to solve leets. You can always come across a question that stumbles you.