

index 함수를 이용해 list내의 target요소의 위치를 반환했다.format 함수를 이용해 문자열을 반환했다.# programmers, phase1 : 서울에서 김서방 찾기, python3
def solution(seoul):
return '김서방은 {}에 있다'.format(seoul.index('Kim'))


https://programmers.co.kr/learn/courses/30/lessons/12919
github