Week 6
Variables, Expressions, and Statements

Weekly Summary

For the remainder of the semester we will be programming in the text-based, Python programming language.

www.python.org

This week we will look at the building block operators in Python that allow us to perform basic mathematical operations and store results in appropriate variables.

Recall from our prior Scratch Unit that we defined variables as:

Learning Outcomes

By the end of the week students should be able to:

  • Given the name for a variable, indicate whether it is a legal name in python (does it follow the rules of syntax).
  • Given one or more mathematical expressions using the python mathematical operators, indicate the result.
  • Describe the function of the three Python division operators.
  • Explain differences between integer and floating-point data.
  • Given one or more statements that set the value of a variable, indicate the data type of the variable.
  • Given one or more statements, indicate the value(s) in one or more variables upon completion of the statements.
  • Given a print statement, determine the output.