Skip to content

Commit 7fc9f60

Browse files
committed
practices modules
1 parent e592f13 commit 7fc9f60

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

python_sandbox_starter/modules.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,37 @@
11
# A module is basically a file containing a set of functions to include in your application. There are core python modules, modules you can install using the pip package manager (including Django) as well as custom modules
2+
3+
import datetime
4+
5+
from datetime import date
6+
7+
import time
8+
9+
#today = datetime.date.today()
10+
11+
today = date.today()
12+
13+
timestamp = time.time()
14+
15+
print(today)
16+
print(timestamp)
17+
18+
#pip module
19+
from camelcase import CamelCase
20+
21+
c = CamelCase()
22+
23+
print(c.hump('hello there world what is going on'))
24+
25+
#import custom module
26+
27+
from validator import validate_email
28+
29+
email = 'test@test.com'
30+
31+
if validate_email(email):
32+
print('valid')
33+
34+
35+
36+
37+

0 commit comments

Comments
 (0)