Input, Processing and Output - Overview

Chapter 2: Input, Processing, and Output

This chapter introduces the program development cycle, variables, data types, and simple programs that are written as sequence structures. The student learns to write simple programs that read input from the keyboard, perform mathematical operations, and produce screen output. Pseudocode and flowcharts are also introduced as tools for designing programs.

Chapter 2 Learning Outcomes

Upon completion of this week's material you should be able to:

describe the concept of a data type, list and describe the data types in Python, and provide guidelines for how to choose the correct numerical data type for a specific application;

  • describe a general program development cycle and each of its phases.
  • describe the data types, String, integer and float;
  • describe the mathematical concepts of integers, and real numbers, and how they are implemented in Python;
  • insert and modify comments in Python code;
  • describe the concepts of variables and constants, and Python naming conventions for variables;
  • create Python statements to declare and assign values to integer, float, and String variables;
  • describe the concept of type casting and how type casting works in Python;
    • float() and int() Functions
  • create Python expressions to perform integer and floating-point addition, subtraction, multiplication and division, and the remainder operation for integers;
  • create code to allow applications to read data from a keyboard as console input;

Please continue onto the next page.