dir()

Returns attributes, the contents of __dict__, of objects (and modules). See section 4 for information about modules and name spaces.

print( dir())

print( dir([]))
  the attributes of lists

print( dir( sys))
  modules are also objects

print( dir( __builtins__))