File size: 390 Bytes
438c749
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
def keyword_score(text):

    keywords = [
        "python",
        "programming",
        "language",
        "data",
        "development",
        "software",
        "presentation",
        "candidate",
        "author"
    ]

    text = text.lower()

    count = sum(1 for word in keywords if word in text)

    score = (count / len(keywords)) * 100

    return round(score, 2), count