Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Math expressions: Familiar operators | Variables in Python
Python Tutorial for Beginners
セクション 2.  4
single

single

bookMath expressions: Familiar operators

メニューを表示するにはスワイプしてください

You can assign the result of a math expression to the variable.

1
lucky_number = 3 + 4
copy

This displays 7 on the screen.

Here is a statement that subtracts 45 from 30, assigning the result, -15, to the variable.

1
loss = 30 - 45
copy

This one assigns the product of 5 times 4 — the result is 20 — to the variable.

1
dozens = 5 * 4
copy

This one assigns 36 divided by 9 — the result is 4 — to the variable.

1
number = 36 / 9
copy
タスク

スワイプしてコーディングを開始

Divide the variable total by 3 and assign the result to the variable result. Display these 2 variables(total, result) on the screen.

解答

Switch to desktop実践的な練習のためにデスクトップに切り替える下記のオプションのいずれかを利用して、現在の場所から続行する
すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 2.  4
single

single

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

some-alt