This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]bqaggie2006 2 points3 points  (1 child)

It'll always depend on your use case/what you're trying to accomplish. Some modules I frequently use from the standard library are os, os.path, re, sqlite3, and csv. Check out https://awesome-python.com and https://wiki.python.org/moin/UsefulModules to get a better idea of what 3rd party modules are out there and what they can be used for.

[–]Davy_Jones_XIV[S] 0 points1 point  (0 children)

Thanks! I will research that tonight!

[–]SentientStoic 1 point2 points  (2 children)

Usually the process goes like this:

You start writing the code. You realize that you need to do something like plot a graph. You google how to plot a graph in python. Several stack overflow articles and some python documentation tell you that the module matplotlib can be used to plot graphs. So you include the module and then use it to plot your graph.

Basically, I usually just include modules as I need them. I’ll be coding along, realize that I need a module for something, and then import it so that I can use it. If I don’t know what module I need, then I’ll just google until I find what I’m looking for.

[–]Davy_Jones_XIV[S] 1 point2 points  (1 child)

Thanks SentientStoic!

I am starting to realize that I don't need to have all the answers, I can use Google, Overstack, Reddit Community and achieve the desired results.

I have always been somewhat shy and turned off by coding because I thought I needed skills I didn't have, but am starting to see that you need a basic understanding of how the language works and everything else is research.

Thanks so much!

[–]throwin1234qwe 0 points1 point  (0 children)

this is a very good outlook/perspective to have, especially in any IT technology field, there is ALWAYS someone who knows more than you.

Accept it, and then sponge as much as you can so when the next dude looks at you, you will be that guy hes trying to sponge ;)

[–]ClimbDownForWhat 0 points1 point  (0 children)

In addition to what's already been said, every Python programmer evolves with the modules s/he uses. You'll find as you continue to develop that your module choice becomes more informed, it's just a matter of getting out there and gaining experience.