Run it! · 실행!
Start here
- A lesson is a list of short steps. Press Continue (the arrow at the bottom) for the next one.
- After the steps come tasks: code you change and run.
- Today you type very little. You change one small thing at a time.
시작하기
- 수업은 짧은 단계들의 목록입니다. 다음 단계로 넘어가려면 계속하기(아래 화살표)를 누르세요.
- 단계 뒤에는 작업이 따라옵니다: 코드를 수정하고 실행하는 부분입니다.
- 오늘은 코드를 거의 타이핑하지 않습니다. 한 번에 작은 것을 하나씩 변경하세요.
The buttons
- Run ▶ runs the code. What it prints appears in the dark box under it.
- Check answer tests your code. Green means correct, and you win coins.
- The lightbulb gives a hint when you are stuck.
- Reset brings the starting code back.
버튼들
- 실행 ▶는 코드를 실행합니다. 출력 결과는 아래 어두운 상자(출력 창)에 나타납니다.
- 정답 확인은 코드를 테스트합니다. 초록색이면 정답이며, 동전을 획득할 수 있습니다.
- 전구 아이콘은 막히었을 때 힌트를 제공합니다.
- 재설정은 초기 상태로 코드를 되돌립니다.
print("I am an example. Press the play button to run me.")
When something goes wrong
- If the code has a mistake, Python stops and shows red text.
- Under the red text, a card explains the error in English and Chinese and tells you which line to look at.
- Mistakes are normal. Read the card, fix one thing, and run again.
오류 발생 시
- 코드에 오류가 있으면 Python이 멈추고 빨간 텍스트를 표시합니다.
- 빨간 텍스트 아래에 카드가 있으며, 영어와 중국어로 오류를 설명하고 라인 번호를 알려줍니다.
- 오류는 정상입니다. 카드를 읽고 한 가지를 수정한 후 다시 실행하세요.
When a program waits for you
- Some programs ask a question with
input(). - Then a highlighted box appears: type here, then press Enter.
- Click the box, type your answer and press Enter. The program continues.
프로그램이 사용자를 기다릴 때
- 일부 프로그램은
input()을 사용하여 질문을 던집니다. - 그러면 강조된 상자가 나타납니다: 여기에 입력한 후 Enter 키를 누르세요.
- 상자를 클릭하고 답을 입력한 후 Enter를 누르세요. 그러면 프로그램이 계속 실행됩니다.
name = input("What is your name? ")
print("Nice to meet you, " + name)
Now you try
- Three small tasks. Change the code, press Run, then Check answer.
이제 직접 해보기
- 세 개의 작은 작업입니다. 코드를 변경한 후 실행을 누르고, 정답 확인을 누르세요.
This program is switched off: the # at the start makes the line a comment, so Python skips it. Delete the #, press Run ▶ to see what it prints, then press Check answer. · 이 프로그램은 꺼져 있습니다: 시작에 있는 # 때문에 이 줄은 주석으로 처리되어 Python이 건너뜁니다. #를 삭제하고 Run ▶을 눌러 출력 결과를 확인한 뒤, Check answer를 누르십시오.
Click Run to see the output here. · 출력을 보려면 '실행'을 클릭하세요.
Change one word so the program prints I like dogs. Only the text inside the quotes changes. · 하나의 단어만 변경하여 프로그램이 I like dogs를 출력하게 하십시오. 바뀐 것은 따옴표 안의 텍스트 뿐입니다.
Click Run to see the output here. · 출력을 보려면 '실행'을 클릭하세요.
This program has a mistake. Press Run ▶ first and read the card under the red text: it explains the error. Then fix the line so the program prints Hello. · 이 프로그램에는 오류가 있습니다. 먼저 Run ▶을 눌러 빨간색 글 아래에 있는 카드를 읽고 설명을 확인하십시오. 그런 다음 program이 Hello를 출력하도록 그 줄을 수정하십시오.
Click Run to see the output here. · 출력을 보려면 '실행'을 클릭하세요.