Skip to content

Commit 122e425

Browse files
committed
correction
1 parent b1d99b0 commit 122e425

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎python/06-modules.py‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
########## Intro to modules ##########
22

3-
43
#A module is just a fancy name for a python file
54
#By convention, they are often imported at the top of a file
65
#but you can do it anywhere
@@ -18,8 +17,9 @@
1817
#Or, check out this: https://docs.python.org/3/py-modindex.html
1918

2019
#We use the module with dot notation to access the functions or variables
21-
#Similar to an object, but not quite exactly the same thing
20+
#an object of type module
2221
print(math.pi)
22+
print(type(math))
2323

2424
#Here is another example
2525
#Pseudorandom number 0-100 (inclusive)
@@ -104,5 +104,3 @@
104104

105105

106106
import json
107-
108-
json.

0 commit comments

Comments
 (0)