summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYaser Alraddadi <gam.phon@gmail.com>2013-07-03 01:33:48 +0300
committerYaser Alraddadi <gam.phon@gmail.com>2013-07-03 01:33:48 +0300
commit178eaad9df4b4730f7d54994633812220e132f78 (patch)
treeba16d7bb28d21ae85171e0a128ad38b4868b454c
parentbbb3cf771b9a15706b16e79d7849c978485b8b35 (diff)
Added dir() function
Added dir() function
-rw-r--r--python.html.markdown5
1 files changed, 5 insertions, 0 deletions
diff --git a/python.html.markdown b/python.html.markdown
index 59a0b85c..ff77fac6 100644
--- a/python.html.markdown
+++ b/python.html.markdown
@@ -461,6 +461,11 @@ math.sqrt(16) == m.sqrt(16) #=> True
# can write your own, and import them. The name of the
# module is the same as the name of the file.
+# You can find out which functions and attributes
+# defines a module.
+import math
+dir(math)
+
```