문제링크: 둘만의 암호
✍🏻 Information
| content | |
|---|---|
| 언어 | python |
| 난이도 | ⭐️ |
| 풀이시간 | 5분 |
| 제출횟수 | 1 |
| 인터넷검색유무 | yes |
🍒 My Code
def solution(s, skip, index):
answer = ''
alpha = "abcdefghijklmnopqrstuvwxyz"
for i in skip:
alpha = alpha.replace(i,"")
for i in s:
answer += alpha[(alpha.find(i)+index)%len(alpha)]
return answer
💡 What I learned