-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path9-modules.py
More file actions
34 lines (26 loc) · 787 Bytes
/
9-modules.py
File metadata and controls
34 lines (26 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# 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
# Core modules
import datetime
from datetime import date
import time
from time import time
#Pip modules
import camelcase
#custom import
import validator
from validator import validate_email
# today = datetime.date.today()
today = date.today()
print(today)
# timestamp = time.time()
timestamp = time()
print(timestamp)
camel = camelcase.CamelCase()
text = "welcome to the other side"
print(camel.hump(text))
email = "text@testing.com"
# if validator.validate_email(email):
if validate_email(email):
print('Email is valid')
else:
print ('not valid')