Skip to content

Variables and expressions · ⁨变量与表达式⁩

English

Variables hold values

  • A variable stores a value so you can use it later.
  • In Python you write score = 10. The = means "store on the left".
  • You can change a variable by storing a new value into it.
中文

变量保存值

  • 变量(variable)用来存储一个值,方便以后使用。
  • 在 Python 里写作 score = 10。= 的意思是"存到左边"。
  • 你可以通过把一个新值存进去来改变一个变量。

Handout

Log in or create account · ⁨登录或创建账户⁩

IGCSE, A-Level · ⁨IGCSE、A-Level⁩ & AP · ⁨与 AP⁩