>>> def hello_there():
        print "Type your name:"
        name = input()
        print("Hi", name, "how are you?")

여기 함수에 input값을 전달하는 또다른 방법이 있습니다. -‘raw input’은 파이썬 함수로 만들어져 있어, 다른방식으로서 함수와 상호작용 합니다.

함수 - 입력 INPUT

쉬운 방법:

>>> def hello_there():
       name = input("Type your name: ")
       print ("Hi", name, "how are you?")

>>> hello_there()
>>> Type your name: Barbara
>>> Hi Barbara how are you?