문제풀이/프로그래머스

[프로그래머스][Lv1] - 서울에서 김서방 찾기(Python)

얄루몬 2021. 10. 18. 16:58

def solution(seoul):
    answer =''
    for i in range(len(seoul)):
        if seoul[i] == "Kim":
            answer += '김서방은 '+str(i)+'에 있다'
    return answer