Chapter 14

Data and Variables

Learning Objectives

After completing this chapter, you should be able to understand the following:

  • different types of data
  • operators
  • operands
  • initializing variables
  • expressions and return values
  • how to collect user input

Key Terminology

Values and Data Types

  1. value
  2. data type
  3. number
  4. string
  5. type
  6. integer
  7. float
  8. expression
  9. returns
  10. type system

Variables

  1. variable
  2. assignment statement
  3. evaluation

More on Variables

  1. keywords
  2. reserved words

Expressions and Evaluations

  1. expression
  2. returns

Operations

  1. operator
  2. operand
  3. arithmetic operators
  4. modulus
  5. order of operations
  6. PEMDAS

Input with input()

  1. input
  2. prompt