Word Score

In Scrabble, each letter has its own point value, so a word’s total score is the sum of its letter scores. The function score receives a word word and calculates its Scrabble score. Letter case does not matter, so lowercase and uppercase letters should be scored the same way.

Примеры

Ввод
"a"
Вывод
1
Ввод
"cabbage"
Вывод
14
Ввод
"quirky"
Вывод
22

Нужно реализовать

def score(word: str) -> int:

Теги

stringsdict
PostgreSQLv16

Aici va apărea rezultatul execuției codului

Visible tests
1
Input
"a"
Expected1
2
Input
"cabbage"
Expected14
3
Input
"quirky"
Expected22
4
Input
"OxyphenButazone"
Expected41
5
Input
""
Expected0
6
Input
"!"
Expected0
Focus radio
Paused · SomaFM · Fluid