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 · 入力の取得 →
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.
Read a whole number and print it doubled. For the input 7, print 14.
Click Run to see the output here. · 実行ボタンをクリックして出力を確認してください。