- #연습문제 3-전화번호부 프로그램을 작성하시오#사용자가 q 를 입력할 때 까지 이름과 전화번호를 입력 - #연습문제 3-전화번호부...

This preview shows page 1 out of 1 page.

# 연습문제 3- 전화번호부 프로그램을 작성하시오 . # 사용자가 q 를 입력할 때 까지 이름과 전화번호를 입력 받아 저장하고 이름으로 전화번호를 검색하 # 는 프로그램을 작성하시오 def add_person(numbers): #add_person 함수 : 리스트를 매개변수로 하여 정의 , 이름과 번호 리스트 에 저장 print(" 이름과 전화 번호를 입력해주세요 !") while(1): #while 문으로 여러개의 이름과 번호를 입력받음 name = input(" 이름 : ") if name!='q': phone = input(" 번호 : ") numbers[name]=phone elif name=='q': # 이름에
Image of page 1

You've reached the end of your free preview.

Want to read the whole page?

  • Spring '16
  • ddfd

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors