Variables are names that represent a value that can be changed at any time during program execution.
Variables start with the ? symbol.
?score = 0
These two lines have the same effect:
' add 50
?score = ?score + 50
?score + 50' multiply by two
?score = ?score * 2
?score * 2Be careful: within a single line, variables are not modified:
' Displays the result without changing the value of ?score
print ?score * 2
If you use a variable before giving it a value, it will be zero.
