Skip to content

Function for Word Comparrison #10

@riseandshine0

Description

@riseandshine0

Write a function that takes a string and compares every word in the string with a given dict.

The given dict looks something like

bad_word = {'Monster' : 5, 'Thief' : 3.6, 'Money' : 1}

Add all scores, assuming 0 for missing words, and return the sum

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions