-
Notifications
You must be signed in to change notification settings - Fork 1
/
temp.py
49 lines (41 loc) · 898 Bytes
/
temp.py
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import math
import re
hello =dict()
hello['vabhai'] = 1
hello['chai'] = 1
hello['chu'] = 1
hello['global'] = 1
hello['randi'] = 1
if 'global' in hello:
print "global present"
def getFormatedDockey(docKey):
space = " "
for i in range(70 - len(docKey)):
space += " "
docKey += space
return docKey
match = re.match(r'# \d+', "# 123")
if match:
print "match found"
else:
print "match not found"
#
# stop_word_list = [line.rstrip('\n') for line in open('/Users/ashishbulchandani/PycharmProjects/final-project/common_words')]
# for word in stop_word_list:
# print word
# Interface Score :
# method calculateScore()
#
# Class A implements Score:
# method calculateScore():
# return 1
#
# Class B implements Score:
# method calculateScore():
# return 2
#
# Score = new A()
# Score.calculateScore()
#
# Score = new B()
# Score.calculateScore()