Expressions

Remember when we learned about expressions and variables in EdScratch? Remember that Edison evaluates an expression by deciding whether it is true or false. Below is a list of some basic expressions used in Python. You may need to refer to this page in this chapter and in other upcoming chapters.

ExpressionEdison processes it as:True or False?
A == BIs A the same as B?True or False?
A != BIs A not equal to B?True or False?
A > BIs A greater than B?True or False?
A >= BIs A greater than or equal to B?True or False?
A < BIs A less than B?True or False?
A <= BIs A less than or equal to B?True or False?
[4 p. 17]

When using expressions- think like a computer! Instead of worrying about an exact value, you just need to determine if the answer is true or false.