diff options
author | Yaser Alraddadi <gam.phon@gmail.com> | 2013-07-03 01:33:48 +0300 |
---|---|---|
committer | Yaser Alraddadi <gam.phon@gmail.com> | 2013-07-03 01:33:48 +0300 |
commit | 178eaad9df4b4730f7d54994633812220e132f78 (patch) | |
tree | ba16d7bb28d21ae85171e0a128ad38b4868b454c | |
parent | bbb3cf771b9a15706b16e79d7849c978485b8b35 (diff) |
Added dir() function
Added dir() function
-rw-r--r-- | python.html.markdown | 5 |
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) + ``` |