01.Hello World

2 minute read

[ #Python#파이썬##Codecademy#코드카데미#한글#한국어#Korean#설명#정답#가이드#Solution#정답#Solve#Instruction#Hint#무료#Free#Python2#Python3]

원본[English]


LESSON

이 장에서는 수많은 독립형 프로젝트들과 스크립트형 응용 프로그램에 사용할수 있는 객체지향 프로그래밍 언어인 Python2 를 소개할 것이다.



codecademy

PYTHON SYNTAX

1. Hello World!

생각해보자!
사용자와 컴퓨터가 서로 대화를 하기 위하여, 사용자가 컴퓨터에게 가르칠것이 있다면 제일 먼저, 사용자는 컴퓨터가 어떻게 말하는지를 가르치는 것이 필요할 것이다.
이것이 프로그래밍이다.

Python 프로그래밍에선, print 문을 사용하여 컴퓨터가 말하는것을 사용자가 이해한다.

아래는 print 문장을 사용하는 프로그래밍 예를 설명한다.

print "Hello, world!"
print "Water—there is not a drop of water there! Were Niagara but a cataract of sand, would you travel your thousand miles to see it?"

print 문은 Python 프로그램밍에서 대화하기 가장 쉬운 방법중 하나이다.
사용자와 대화를 가능케하는 print 문은 당신이 가지고 있는 프로그래밍 관련 도구상자에서 가장 유용한 도구중 하나가 될 것이다.

설명: [ Learn ]
• Ch1. Hello World! 에서는 print 문을 학습한다.
• 상단 검정 박스안의 Python 소스를 Editor 화면에 복사하여 실행(Run) 해 보자.
• 우리는 컴퓨터에게 Hello World! 라는 문장을 화면에 출력 시키라고 명령한 것이다.



codecademy

  • print문을 사용하여, 당신이 쓰고 싶은 문장이 화면에 출력되도록 컴퓨터에게 시켜 보아라.



codecademy

  • 아래와 같이 print문을 쓰고, 그 뒷편에 “Your Message!” 를 입력하고 출력 시키면 된다.
print "Your Message!"



codecademy

print "Hello World!"

설명: [ Solution ]
• print 문을 사용하여 Hello World! 를 출력하였다.

결과

Hello World!

LESSON

This lesson will introduce you to Python 2, a general-purpose, object-oriented interpreted language you can use for countless standalone projects or scripting applications.

설명: [ 학습방향 ]
이 장에서는 객체 지향 프로그램 언어인 Python2 을 소개합니다.
Python은 수많은 독립형 프로젝트와 스크립트 응용 프로그램 환경에서 사용할 수 있습니다.



codecademy

PYTHON SYNTAX

1. Hello World!

If programming is the act of teaching a computer to have a conversation with a user, it would be most useful to first teach the computer how to speak. In Python, this is accomplished with the print statement.

accomplished with the print statement.

print "Hello, world!"
print "Water—there is not a drop of water there! Were Niagara but a cataract of sand, would you travel your thousand miles to see it?"

A print statement is the easiest way to get your Python program to communicate with you. Being able to command this communication will be one of the most valuable tools in your programming toolbox.

설명: [ Learn ]
• Ch1. Hello World! 에서는 print 문을 학습한다.
• 상단 검정 박스안의 Python 소스를 Editor 화면에 복사하여 실행(Run) 해 보자.
• 우리는 컴퓨터에게 Hello World! 라는 문장을 화면에 출력 시키라고 명령한 것이다.



codecademy

  • Using a print statement, output a message of your choosing to the terminal.

설명: [ Instruction ]
• print 문을 사용하여 당신이 쓰고 싶은 문장이 화면에 출력되도록 컴퓨터에게 시켜라.



codecademy

  • Print a message by typing print followed by your message in quotes, like this:
print "Your Message!"

설명: [ Hint ]
• print 문을 사용하여 Your Message! 를 화면에 출력한다.



codecademy

print "Hello World!"

설명: [ Solution ]
• print 문을 사용하여 Hello World! 를 출력하였다.

결과

Hello World!




codecademy

Updated: