Numbers

The computer can also do your regular math that you do in school. Use print to print out the result from the math expressions. No quotation marks are needed for numbers! Unlike strings, you can do math on numbers.

alt text

The computer does division differently from your regular calculator. Computer division will exclude remainders or decimals.

For example,

15/4 makes 3 and not 3.75

You can also try using the math symbols to make your own expressions!

SymbolUseSymbolUse
+Add*Multiply
-Subtract/Divide