<
start
>
clear
copy to:
0
insert
save as:
new page
new last
delete
CSC 130
Variables and Expressions
We should begin by talking about values and data types. Data types are the different kinds of data we can use and store. We have: Numbers: 9 Strings: Computer Boolean Values: True/False We can also talk about operators. A good start for operators is to talk about mathmatical operators, such as addition (+) and multiplication (*) In lively, we can evaluate any block of text by highlighting it and pressing CMD/CTRL + D and print the result by highlighting it and pressing CMD/CTRL + P. Try that below on the following VALUES and OPERATORS: 3 + 4 3 * 4 3 + 4 * 5 (3 + 4) * 5 'hello' + ' ' + 'world!' Notice that the strings 'hello', ' ' and 'world!' can be added together, but that the following doesn't work: 'team' - 'ea'