Intro to Programming
(Python)
Based on notes by Kyle Burke
, The Way of the Program
A program is a sequence of instructions that specifies how to perform a computation. Core instructions include:
Input: Get data from the keyboard, a file, or other device.
Output: Display data on the screen, save to a file, etc.
Math: Perform basic mathematical operations like addition and multiplication.
Conditional Execution: Check for certain conditions and run the appropriate code.
Repetition: Perform some action repeatedly, usually with some variation.