Tuesday, June 23, 2015

Python for Informatics Week 1 / Lecture 1

Lecture 1.1: Why Program


Python words
words.py

name = raw_input('Enter File:'
handle = open(name, 'r')

Lecture 1.2: Hardware Overview


Components.

Secondary memory.

Main memory is very fast.

Programs go into main memory.

Computers execute machine language.

Translate directly to what's on pins.

Source code like python.

Intensity of how much electricity...

How much energy is a central processing unit using?

Enough to fry the electronics.


What does a hard drive look like inside?

Lecture 1.3: Python as a Language


Lecture 1.4: Programming Paragraphs


Python Scripts
.py

Writing a simple script

Programming steps or Program Flow
Recipe
Sequential
Skipped
Multiple times

Repeated steps

n - 5
    while n > 0
        print n
        n = n - 1
print 'Blastoff!'

Sequential
Repeated
Conditional 


Lecture 1.5: Programming Paragraphs

An animated short python story

list of numbers:

what's the largest?


Student Curated Notes