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.

Expression | Edison processes it as: | True or False? |
---|---|---|

A == B | Is A the same as B? | True or False? |

A != B | Is A not equal to B? | True or False? |

A > B | Is A greater than B? | True or False? |

A >= B | Is A greater than or equal to B? | True or False? |

A < B | Is A less than B? | True or False? |

A <= B | Is A less than or equal to B? | True or False? |

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.

Login

Accessing this course requires a login. Please enter your credentials below!