From 178eaad9df4b4730f7d54994633812220e132f78 Mon Sep 17 00:00:00 2001 From: Yaser Alraddadi Date: Wed, 3 Jul 2013 01:33:48 +0300 Subject: Added dir() function Added dir() function --- python.html.markdown | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'python.html.markdown') 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) + ``` -- cgit v1.2.3