본문 바로가기
프로그램/Python 1000제

Python 51제] 파이썬 Express CHAPTER 4 p185 도전문제

by 건티 2022. 4. 8.
728x90

출처 : 반크_세계유산 고인돌

 

참고풀이]

persons=["Kim","Park","Lee"]
restaurants=["Korean","American","French"]
locations=["서울","부산","대전"]

for person in persons:
    for locat in locations:
        for restaurant in restaurants:
            print(person+"이(가) " + locat +"에 있는 " + restaurant +"식당을 방문")

 

참고풀이 결과]

 

 

 

 

대한민국의 아름다운 영토, 독도의 가을

 

 

반응형

댓글