-Code
change = {"e": "i", "i": "e", "E": "I", "I": "E"}
while 1:
try:
s = input()
result = ""
for i in s:
if i in change:
result += change[i]
continue
result += i
print(result)
except EOFError:
break
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 27245번 Комната (0) | 2023.02.14 |
---|---|
[백준/파이썬] 26340번 Fold the Paper Nicely (0) | 2023.02.13 |
[백준/파이썬] 27213번 Boundary Cells (0) | 2023.02.10 |
[백준/파이썬] 25932번 Find the Twins (0) | 2023.02.09 |
[백준/파이썬] 27389번 Metronome (0) | 2023.02.08 |