Notice
Recent Posts
Recent Comments
Today
Total
04-30 08:58
Archives
관리 메뉴

Jeongchul Kim

hello.py 본문

Computer Language

hello.py

김 정출 2015. 1. 9. 15:49
    1. # This program says hello and asks for my name.

    2. # <- 주석(comment) 부분이다.
    3. print('Hello world!')   # 함수(function) -> 함수 호출(function call) : 함수를 실행한다.
    4. print('What is your name?') # print() 함수 : 화면에 출력한다.
    5. myName = input()
    6. # input() 함수 : 사용자의 입력을 마칠 때까지 대기하며, 입력을 받는다, 반환형은 사용자가 입력하는 문자열이 출력값이 된다.
    7. print('It is good to meet you,'+myName) 


'Computer Language' 카테고리의 다른 글

IntroduceGame.py  (0) 2015.01.09
NumberGame.py  (0) 2015.01.09
01-04 Python 둘러보기  (0) 2015.01.08
01-03 Python 설치  (0) 2015.01.08
01-02 Python의 용도  (0) 2015.01.08
Comments