Input은 함수가 수행될 수 있게 함수에게로 보내는 정보 입니다.

>>> def hello_there(myname):
      print("Hello", myname)

아래 예제에서, 문자열”Katie”는 input 입니다. 그리고 이것은 myname이라는 변수로 표현되어 집니다.

>>> hello_there("Katie")
Hello there Katie

함수 - 입력 INPUT

input() 함수는 사용자로부터 input값을 가져갑니다. - 여러분들은 타이핑(typing)을 통해서 함수에 input값을 줄 수 있습니다.

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

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