OSSU-computer-science/archives/01-introduction-to-computer-science-and-programming/archives/UNIT-01/02-core-elements-of-a-program
2014-05-12 21:23:50 -03:00
..
example.js examples.py and examples.js add - 01.01.02 2014-05-09 22:00:28 -03:00
example.py finish example.py 01.01.02 2014-05-12 21:14:08 -03:00
README.md some 'check yourself' questions 01.01.02 2014-05-12 21:23:50 -03:00

Core Elements of a Program

This lecture covers the building blocks of straight line and branching programs: objects, types, operators, variables, execution, and conditional statements.

Session Activities

Lecture 2: Core Elements of a Program (00:49:49)

About this Video: Topics covered: IDLE, types of objects, operators, overloading, commands, variables, assignment, input, straight line and branching programs, looping constructs, Turing completeness, conditionals, nesting.

Resources

Code in Node.JS

Code in Python

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.