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: arithmetic

Secondary Tags:

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