Assignment Statements

Description

Sage uses = for assignment statements. Each compute cell will show output due to only the very last command in the cell.

Sage Cell

Code

a = 10
b = 6
b = b - 10
a = a + 20
a

Options

None

Tags

Primary Tags: Programming: The Python language; Arithmetic: Integers.

Secondary Tags: The Python language: Variables and other references, Expressions and operators, Numeric operations.
Integers: Addition/subtraction.

Related Cells

None

Attribute

Author: R. Beezer

Permalink:

Date: 25 Jun 2017 16:06

Submitted by: Tom Judson

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License