A number from input · 입력된 숫자
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · 이 페이지는 최신 브라우저(SharedArrayBuffer 지원)가 필요합니다. Chrome, Edge, Firefox 또는 Safari를 최신 버전으로 업데이트해 주세요.
This one builds on a lesson you haven't finished yet. Do that lesson first: · 이 과제는 아직 완료하지 않은 수업에 기반합니다. 먼저 해당 수업을 완료하세요:
Python Basics · Getting input · 입력 받기 →
English
A number from input
Read a whole number and print it doubled. For the input 7, print 14.
⚠️ input() always gives back text, even when you typed digits — "7" * 2 is "77". Wrap it in int(...) to get a number you can do arithmetic with.
한국어
입력에서 숫자 얻기
정수를 입력받아 두 배한 값을 출력합니다. 입력값 7에 대해 14를 출력합니다.
⚠️ input()은 항상 텍스트를 반환합니다. 숫자를 입력했더라도 "7" * 2는 "77"이 됩니다. 연산을 위해 숫자로 변환하려면 int(...)로 감싸야 합니다.
Read a whole number and print it doubled. For the input 7, print 14. · 정수를 입력받아 두 배한 값을 출력합니다. 입력값 7에 대해 14를 출력합니다.
Click Run to see the output here. · 출력을 보려면 '실행'을 클릭하세요.