Multiply two variables · 变量相乘
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 · Python 基础 · Variables · 变量 →
English
Multiply two variables
The same works with *: price * qty.
中文
变量相乘
用 * 也一样:price * qty。
Set · 集合 price to · 到 3 and qty to · 到 4. Print price * qty. It shows 12. · 把 price 设为 3,qty 设为 4。打印 price * qty。它会显示 12。
Click Run to see the output here. · 点击“运行”查看此处输出。