ENGINEER 1D04 Final: Elliot Programming Final

52 views15 pages
scarletotter976 and 37168 others unlocked
ENGINEER 1D04 Full Course Notes
4
ENGINEER 1D04 Full Course Notes
Verified Note
4 documents

Document Summary

A computer is defined as a machine that stores and manipulates information under the control of a changeable program. Programs are sets of step by step instructions teaching computers how to something. Most codes are made using a high-level computer language. High level languages fall in one of two groups: Compilers: translate written code into the language of the machine. Interpreters: act as a translator between the code and computer giving its meaning as it becomes necessary. Creating a program is broken down into six stages: Not reserved words (words that mean something special in python) Any fragment of a code which produce or calculate new data is called an expression. An example of an expression is x=5 for it assigns new data to x. More complex expressions are operators such as addition(+), subtraction(-), multiplication(*), division(/), and to the power(**) The simplest way to output data is with a print statement, which displays the data in pythons shell when run.