728x90
반응형

문자열의 처음과 마지막을 출력해준다.

for _ in range(int(input())):
    word = input()
    print(word[0]+word[-1])

728x90
반응형

+ Recent posts