Outline for January 8, 2018
Reading
: §1
About the class
Instructor
Class web site, handouts
Canvas and submitting homework
Homework, grading, and extra credit
What is a computer?
Computer programs
Execution
Algorithms
Precision and completeness
What is computable
What is intractable
Programming languages
High-level languages: semantics and syntax
Low-level languages: assembly language, machine language
Compilers, assemblers, interpreters
Source code, object code
Libraries
Python
What is Python?
Why Python for this class?
Python, files and shells
Python: programming
language
that you use to tell the computer what to do
Shell: what you can type Python statements directly into, to see what they do
IDLE: the program that
interprets
Python statements (executes the Python program)
File: type Python statements into this, and then have IDLE execute those statements by running the program in the file
How to write a program; example is making change (see handout
change-write
)
Goal and general algorithm idea
Representing data and basic program structure
Translating this into a programming-like language
Translating that into Python: [
change-write.py
]
First program: hello, world [
hello0.py
]
Explain printing
Demonstrate program in IDLE
Matt Bishop
Department of Computer Science
University of California at Davis
Davis, CA 95616-8562 USA
Last modified: January 10, 2018
Winter Quarter 2018
You can get a PDF version of this