From fa6a77b3ad2601329982fa1f9a7748da75e0ade7 Mon Sep 17 00:00:00 2001 From: Eric Douglas Date: Mon, 12 May 2014 21:23:50 -0300 Subject: [PATCH] some 'check yourself' questions 01.01.02 --- .../UNIT-01/02-core-elements-of-a-program/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/archives/01-introduction-to-computer-science-and-programming/archives/UNIT-01/02-core-elements-of-a-program/README.md b/archives/01-introduction-to-computer-science-and-programming/archives/UNIT-01/02-core-elements-of-a-program/README.md index 10a7425..9549ea1 100644 --- a/archives/01-introduction-to-computer-science-and-programming/archives/UNIT-01/02-core-elements-of-a-program/README.md +++ b/archives/01-introduction-to-computer-science-and-programming/archives/UNIT-01/02-core-elements-of-a-program/README.md @@ -13,3 +13,13 @@ This lecture covers the building blocks of straight line and branching programs: ◈ [Code in Node.JS](https://github.com/ericdouglas/MIT-computer-science-and-engineering/blob/master/archives/01-introduction-to-computer-science-and-programming/archives/UNIT-01/02-core-elements-of-a-program/example.js) ◈ [Code in Python](https://github.com/ericdouglas/MIT-computer-science-and-engineering/blob/master/archives/01-introduction-to-computer-science-and-programming/archives/UNIT-01/02-core-elements-of-a-program/example.py) + +## Check Yourself + +### What is a *type*? + +Type are classifications of objects, which is what Python, as an OOP language, deals with. They determine how those objects are dealt with (for example, adding two integers results in an integer, two strings results in a concatenated string, and on integer and a string results in an error). + +### What is an 'expression'? + +An expression is composed of objects (or operands) and operators, and can be interpreted into a value.