Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wordValue #56

Open
alexanderGGreenberg opened this issue Mar 7, 2018 · 3 comments
Open

wordValue #56

alexanderGGreenberg opened this issue Mar 7, 2018 · 3 comments
Labels
Difficult enhancement New feature or request

Comments

@alexanderGGreenberg
Copy link
Contributor

alexanderGGreenberg commented Mar 7, 2018

Implement the funciton in src/wordValue.py with the following specification:

given a dict of letter to numeric value mappings, calculate the value of the given word
example valueDict = {'o': 3, 's': 7} word = 'os'
return 3+7 = 10

@joelahoover joelahoover added enhancement New feature or request Difficult labels Mar 7, 2018
@thejxp
Copy link

thejxp commented Mar 7, 2018

🙋🏻

@cjfragoso
Copy link

cjfragoso commented Mar 13, 2018

valueDict = {'o':3, 's':7}
word = []
for key in valueDict.keys(): word.append(key)
result = []
for letter in word:
result.append(valueDict[letter])
total = sum(result)
???

@ammar0211
Copy link

I got this!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Difficult enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants