3 ms·
Hang in there, it will be worthwhile! I too had similar problems getting a hang of Python. "Dive into Python" was a help. But once it 'clicked' it became har
by CyberFonic 16y ago
Hang in there, it will be worthwhile!
I too had similar problems getting a hang of Python. "Dive into Python" was a help. But once it 'clicked' it became hard to write anything that didn't work. One thing that I still marvel is at, that you can often just make a guess and it works! The collection of 'batteries' is very useful. Typing help(some_function_or_class) at the command prompt is often very useful.
NB: if you are writing for Windows and Linux and OS/X, then you should use the functions in os.path module to avoid hard coding the directory and filename conventions.
- Random_Person 16y agoI played with Dive Into for a while. The problem has been that I just haven't had anything I've needed to code for a long time. Being a once-programmer, I've always arrogantly assumed that I could just jump back into coding, what I'm finding though is that nearly 10 years off was just a little too much. :) This was a one-off for that particular task, so no cross platform writing, but I'm certainly use os.path in the future. Thanks for that!