문제링크: 모음사전
✍🏻 Information
| content | |
|---|---|
| 언어 | python |
| 난이도 | ⭐️⭐️ |
| 풀이시간 | 16분 |
| 제출횟수 | 1 |
| 인터넷검색유무 | no |
🍒 My Code
def solution(word):
answer = 0
alphabet = ['A','E','I','O','U']
for i in range(len(word)):
answer += alphabet.index(word[i])*sum([5**i for i in range(5-i)])+1
return answer
💡 What I learned