Introduction to Programming with Python

What is a Computer?

1 A person who makes calculations or computations; a calculator, a reckoner; spec. a person employed to make calculations in an observatory, in surveying, etc. Now chiefly hist....

2 A device or machine for performing or facilitating calculation.

3 An electronic device (or system of devices) which is used to store, manipulate, and communicate information, perform complex calculations, or control or regulate other devices or machines, and is capable of receiving information (data) and of processing it in accordance with variable procedural instructions (programs or software); esp. a small, self-contained one for individual use in the home or workplace, used esp. for handling text, images, music, and video, accessing and using the Internet, communicating with other people (e.g. by means of email), and playing games. OED

What Constitutes a Computer?

Hardware

Software

  • Operating System
  • Applications
    • Applications are created with programming languages

What Defines a language?

  • Semantics are the meaning of the various symbols used in the language
    • (e.g. "+", "def", "while", "list")
  • Syntax are the rules used to connect the various symbols
    • (e.g. "a=5" is syntactically correct in Python but "5=a" is not).

What is a Program?

  • A program is a sequential list of instructions.
    • "Do THIS to THAT" #### Example Program: Tell me how to make a peanut butter and jam sandwich
  • Just like sentences in our everyday language, computer programs have nouns and verbs

What is a programming language?

You and speak to each other in English. Computers don't understand English. Each computer has its own language known as machine language. For humans to write a computer program in machine language is tedious, so people have invented higher language programming languages along with programs that translate (interpret) that high level program to machine language.

The high level programming language we are going to use is Python, which despite using a snake as its symbol is named after Monty Python, the British comedy troupe.

Next: Introducing Python


<span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">University of Uah Data Science for Health</span> by <span xmlns:cc="http://creativecommons.org/ns#" property="cc:attributionName">Brian E. Chapman</span> is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.|


In [ ]: