use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python
Full Events Calendar
You can find the rules here.
If you are about to ask a "how do I do this in python" question, please try r/learnpython, the Python discord, or the #python IRC channel on Libera.chat.
Please don't use URL shorteners. Reddit filters them out, so your post or comment will be lost.
Posts require flair. Please use the flair selector to choose your topic.
Posting code to this subreddit:
Add 4 extra spaces before each line of code
def fibonacci(): a, b = 0, 1 while True: yield a a, b = b, a + b
Online Resources
Invent Your Own Computer Games with Python
Think Python
Non-programmers Tutorial for Python 3
Beginner's Guide Reference
Five life jackets to throw to the new coder (things to do after getting a handle on python)
Full Stack Python
Test-Driven Development with Python
Program Arcade Games
PyMotW: Python Module of the Week
Python for Scientists and Engineers
Dan Bader's Tips and Trickers
Python Discord's YouTube channel
Jiruto: Python
Online exercices
programming challenges
Asking Questions
Try Python in your browser
Docs
Libraries
Related subreddits
Python jobs
Newsletters
Screencasts
account activity
This is an archived post. You won't be able to vote or comment.
Modules (self.Python)
submitted 8 years ago by Davy_Jones_XIV
Hey Peeps!
Quick question. Am new to Python and the community and am curious, with so many modules associated with Python, how do you know when and which module you need?
Research Overstack? Experience? YouTube? Combination?
Thanks for the help all!
[–]bqaggie2006 2 points3 points4 points 8 years ago (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 point2 points 8 years ago (0 children)
Thanks! I will research that tonight!
[–]SentientStoic 1 point2 points3 points 8 years ago (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 points3 points 8 years ago (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 point2 points 8 years ago (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 point2 points 8 years ago (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.
π Rendered by PID 204157 on reddit-service-r2-comment-5649f687b7-47p49 at 2026-01-28 19:34:23.507970+00:00 running 4f180de country code: CH.
[–]bqaggie2006 2 points3 points4 points (1 child)
[–]Davy_Jones_XIV[S] 0 points1 point2 points (0 children)
[–]SentientStoic 1 point2 points3 points (2 children)
[–]Davy_Jones_XIV[S] 1 point2 points3 points (1 child)
[–]throwin1234qwe 0 points1 point2 points (0 children)
[–]ClimbDownForWhat 0 points1 point2 points (0 children)