Ask for two things · 2つのものを聞く
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 · 入力の取得 →
Ask for two things
Read a colour, then an animal. Print them on one line with a space between: for red and fox, print "red fox".
Each input() reads ONE line, so two things need two calls — and each needs its own variable, or the second overwrites the first.
Read a colour, then an animal. Print them on one line with a space between: for red and fox, print "red fox". · 色と動物を順に読み込みます。スペースで区切って同じ行に印刷してください。例:「red」と「fox」を入力したら、「red fox」と出力します。
Click Run to see the output here. · 実行ボタンをクリックして出力を確認してください。