Skip to content

Commit 0395612

Browse files
committed
new stuff added
1 parent 1990dec commit 0395612

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

markdown-version/modules.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,20 @@ List can be found here [LIST OF MODULES](https://docs.python.org/3/py-modindex.h
1515

1616
## Custom Modules
1717
Custom module is just file with python code.
18+
19+
##### For Example
20+
21+
```python
22+
# file1.py
23+
def hello():
24+
return "Hello"
25+
def hey(name):
26+
return f'Hey {name}'
27+
```
28+
29+
```python
30+
# Importing a custom module
31+
import file1 as fn
32+
fn.hello()
33+
fn.hey('Jake')
34+
```

0 commit comments

Comments
 (0)