Quick Tip: Print a Python Module’s Contents in 3 Lines

import math            # Imports the math module
everything = dir(math) # Sets everything to a list of things from math
print everything       # Prints ’em all!
Stackoverflow Solutions

Just started! Have not answered any questions.