.
practice. The majority of such problems come from different programming olympiads. You can find them on codeforces.com. I know it can seem scary, but this is by far the best way to learn, in my experience. As for Python in the context of computational neuroscience, as an entry point I can recommend