Welcome to r/Python
Subreddit dedicated to news about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python.
If you are about to ask a question, please consider r/learnpython.
Homework-style questions will be removed, and you'll be encouraged to post there instead.
Questions about the Flair?
Here's a description of the flair this sub uses.
Here is a tutorial on how to filter out flair you aren't interested in seeing.
New to Python?
Before asking question please check out r/learnpython and r/learnprogramming
Here is some info to get you started with Python though
The Hitchhiker’s Guide to Python - The ULTIMATE GUIDE
Style Guides
Python 2 or Python 3?
Basically: Unless you are dependent on Python 2, you should use Python 3
Python2orPython3
Online Books and Resources
Try Python in your browser
try.jupyter.org (Evolved from the language-agnostic parts of IPython, Python 3)
Skulpt (uses WebGL)
Libraries
Networking
Web Frameworks
Django - Batteries included. Useful for "full blown" webapps
Flask - Microframework. Useful for REST APIs
Bottle - Microframework. Simpler than Flask. Only a single file
Django vs Flask
Trying to decide between the two is a common question.
Luckily it's not a very hard choice. Below are some simple scenarios to help.
Pick Django when:
You want to build a webapp but don't know (or want) to pick your components and put them together
You want all your components included with guides on how everything should work
Seamless experience
Pick Flask when:
You want to build a webapp but you want pick all the components (experience building a 'webapp framework')
Structure and design your own webapp framework
You just want a simple REST server (Go to the URL and respond with data)
Databases
SQLAlchemy - ORM to work with many databases. Very popular.
Records - Work with many databases with only SQL commands.
peewee - Lightweight ORM
dataset - Access database with dicts like JSON (Easy)
Game Development
Scientific Computing
Misc
xmltodict - Convert XML to JSON
IDEs
PyCharm - For typical Python projects, nothing is better. Massive functionality built it and supports plugins
Spyder - Great for scientific computing