Hmmmm... you mean that in your mind, you can produce a sketch of how you would do it mathematically, but you can't translate that into python? Or do you mean that you can think of roughly how you would do it in python, but when you sit down to actually write, you feel you aren't ready?
In either case, I think the following technique would be useful for you. It is what I do whenever I'm picking up a new language/toolset or when I just don't feel fluent in what I'm doing. I grab some scrap paper and just use it to increase my own mental RAM. I jot down things that I'm thinking:
- questions I have
- ideas about how I'm going to approach a problem
- notes from documentation or stackoverflow lookups
- random talking-to-myself
In the past hour or so, I've been working through setting up a django-cms site for the first time and the contents of my scratchpad look like:
"""
why does render_block_js have so much javascript?
why is the DOM suddenly blank?
I can try
why can't I navigate to /en/polls/ ?
apparently django caches url routing
its adding a fucking dollar sign to the end?! why? why?
Opaque. lets pull-request this documentation.
djangocms_polls
oh, I can just re-order
and I should prepend 'blog' to that
"""
This is incomprehensible to anyone. But the point is that I get these things out of my head and have that much more space to think. Plus, I'm doing something, rather than just sitting in front of a bare text editor frustrated. I'm talking through why I am frustrated and grappling with the problem in some way. That makes me less inclined to get distracted (I'm a very distractible person)
Now, I might be wrong in assuming something that helps my brain will help yours. If I am, please let me know. Since I spend all day using a brain to design code, one of the most important skills I try to build is understanding how people's brains work with code.